1
0
Fork 0

Fixed single file execution

Esse commit está contido em:
Rémi BERTHO 2018-09-30 18:42:12 +02:00
commit 33ec93e98e
Assinado por: dalan
ID da chave GPG: EE3B917931C07B64
2 arquivos alterados com 5 adições e 2 exclusões

2
.gitignore externo
Ver arquivo

@ -97,4 +97,4 @@ ENV/
# IMages
*.jpg
*.jpeg
*.JPG
*.JPG

Ver arquivo

@ -26,7 +26,10 @@ if img == "":
img = img.replace("\\", "/")
img = img.replace("'", "\\'")
exe_dir = path.dirname(path.realpath(sys.argv[0]))
if getattr( sys, 'frozen', False ) :
exe_dir = path.realpath(sys._MEIPASS)
else :
exe_dir = path.dirname(path.realpath(__file__))
os.chdir(exe_dir)
try: