mirror of
https://github.com/norohind/EDMC_SpanshRouter.git
synced 2025-06-04 09:30:57 +03:00
Merge pull request #3 from BuitenDeZone/feature/save_file_location
Better save file handling
This commit is contained in:
commit
06a2acbfb0
8
load.py
8
load.py
@ -18,12 +18,8 @@ this.parent = None
|
||||
this.save_route_path = ""
|
||||
|
||||
|
||||
def plugin_start():
|
||||
if sys.platform == 'win32':
|
||||
this.save_route_path = os.path.expandvars(r'%LOCALAPPDATA%\EDMarketConnector\plugins\SpanshRouter\route.csv')
|
||||
else:
|
||||
home = os.path.expanduser("~")
|
||||
this.save_route_path = home + "/.local/share/EDMarketConnector/plugins/SpanshRouter/route.csv"
|
||||
def plugin_start(plugin_dir):
|
||||
this.save_route_path = os.path.join(plugin_dir, 'route.csv')
|
||||
|
||||
try:
|
||||
# Open the last saved route
|
||||
|
Loading…
x
Reference in New Issue
Block a user