diff --git a/MenuMusicMod-Creator.py b/MenuMusicMod-Creator.py index 35bad71..76d9070 100644 --- a/MenuMusicMod-Creator.py +++ b/MenuMusicMod-Creator.py @@ -5,12 +5,12 @@ from appJar import gui #set working directory for appJar icon -if getattr( sys, 'frozen', False ) : +if getattr( sys, 'frozen', False ): os.chdir(sys._MEIPASS) -else : + dir_path = os.path.dirname(os.path.abspath(sys.executable)) +else: os.chdir(os.path.dirname(os.path.abspath(__file__))) - -dir_path = os.path.dirname(os.path.abspath(__file__)) + dir_path = os.path.dirname(os.path.abspath(__file__)) # return object class for create_folders() class modloc(object):