Skip to content

Commit

Permalink
Remove hardcoded path in backup script
Browse files Browse the repository at this point in the history
  • Loading branch information
David00 committed Mar 12, 2023
1 parent ce2b32e commit 11b8b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpi_power_monitor/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def parse_config(config):

# TODO: Update documentation with usage instructions.
parser = argparse.ArgumentParser(description='Power Monitor CLI Backup Interface', epilog='Documentation for the backup interface coming soon.')
parser.add_argument('--config', type=pathlib.Path, help='path to config.toml file.', default='/home/pi/rpi-power-monitor/rpi_power_monitor/config.toml', required=False)
parser.add_argument('--config', type=pathlib.Path, help='path to config.toml file.', default=os.path.join(module_root, 'config.toml'), required=False)
args = parser.parse_args()

config_path = os.path.join(module_root, 'config.toml')
Expand Down

0 comments on commit 11b8b64

Please sign in to comment.