Skip to content

Commit

Permalink
fixed restart path, tweaked debug mode data path, gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Noiredd committed Jan 31, 2019
1 parent f690ec5 commit c172a80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cache/
filmatyk/__pycache__/
*.html
*.fws
*.dat
*.txt
4 changes: 3 additions & 1 deletion filmatyk/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit c172a80

Please sign in to comment.