Skip to content

Commit

Permalink
Actually make it possible to pack into one EXE
Browse files Browse the repository at this point in the history
[This] was just stupid.
  • Loading branch information
TheTaques authored Jan 12, 2018
1 parent b845bce commit d7167b9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions MenuMusicMod-Creator.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import os
import sys
import shutil
import re
from appJar import gui

#set working directory for appJar icon
if getattr( sys, 'frozen', False ) :
os.chdir(sys._MEIPASS)
else :
os.chdir(os.path.dirname(os.path.abspath(__file__)))

dir_path = os.path.dirname(os.path.abspath(__file__))
os.chdir(dir_path)

# return object class for create_folders()
class modloc(object):
Expand Down Expand Up @@ -143,7 +149,7 @@ def makeithappen_super(button_name):
# -----------------GUI-----------------
# create gui and set title
app = gui('MenuMusicMod Creator', '650x150')
app.setIcon('mmmc.ico')
app.setIcon('mmmc.gif')
app.setFont('10', font='Verdana')

# add labels and entries to gui
Expand Down

0 comments on commit d7167b9

Please sign in to comment.