Skip to content

Commit

Permalink
Make update path specification relative so it works cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
matterhorn103 committed Jun 11, 2024
1 parent 4c1fdae commit 32ad6a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repeat_delay = 5


[paths]
update = "//mora/nmr/mnova/mora_the_explorer"
update = "mnova/mora_the_explorer"
Windows = "//mora/nmr"
Darwin = "/Volumes/nmr" # Darwin = macOS
Linux = "will be overwritten" # Specify in user config, not here!
Expand Down
4 changes: 2 additions & 2 deletions mora_the_explorer/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(

# Set path to mora
self.mora_path = Path(config.paths[platform.system()])
self.update_path = Path(config.paths["update"])
self.update_path = self.mora_path / config.paths["update"]

# Load group and spectrometer info
# Need to flatten groups dict (as some are in an "other" subdict)
Expand All @@ -45,7 +45,7 @@ def __init__(
self.specs = config.specs

# Check for updates
self.update_check(Path(config.paths["update"]))
self.update_check(self.update_path)

# Timer for repeat check, starts checking function when timer runs out
self.timer = QTimer()
Expand Down

0 comments on commit 32ad6a3

Please sign in to comment.