From c172a807bb9d88237f9baeeff9c1d8ea54a001fa Mon Sep 17 00:00:00 2001 From: Noiredd Date: Thu, 31 Jan 2019 22:04:24 +0100 Subject: [PATCH] fixed restart path, tweaked debug mode data path, gitignore --- .gitignore | 2 +- filmatyk/gui.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 188ef3b..8cdbb4b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ cache/ filmatyk/__pycache__/ *.html -*.fws +*.dat *.txt diff --git a/filmatyk/gui.py b/filmatyk/gui.py index a458c0c..bc016c2 100644 --- a/filmatyk/gui.py +++ b/filmatyk/gui.py @@ -220,6 +220,8 @@ def centerWindow(self): #USER DATA MANAGEMENT def getFilename(self): + if self.debugMode: + return self.filename subpath = self.filename userdir = str(Path.home()) return os.path.join(userdir, subpath) @@ -286,7 +288,7 @@ def _quit(self, restart=False): # Updater might request the whole app to restart. In this case, a request # is passed higher to the system shell to launch the app again. if restart: - command = "cd .. && fw-local.bat" + command = "cd .. && Filmatyk.bat" # maintain debug status if self.debugMode: command += " debug"