From a35909768856868dd165172b17d2aa2c8aaa7089 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Fri, 16 Mar 2018 07:17:29 +0100 Subject: Manage exiting as module or as application --- lib/isodumper.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/isodumper.py b/lib/isodumper.py index 60d2341..9d861ed 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -367,10 +367,10 @@ class IsoDumper(object): def close(self): self.write_logfile() self.dialog.destroy() - #exit(0) + self.dialog = None def write_logfile(self): - logpath = os.path.join(os.path.expanduser('~'),'/.isodumper') + logpath = os.path.join(os.path.expanduser('~'),'.isodumper') if not(os.path.isdir(logpath)): os.mkdir(logpath) logfile=open(logpath+'/isodumper.log',"w", encoding="utf-8") @@ -679,14 +679,15 @@ NTFS or ext. You can specify a volume name and the format in a new dialog box.