Fixed single file execution

This commit is contained in:
Rémi BERTHO 2018-09-30 18:42:12 +02:00
부모 f43c5e3ed4
커밋 33ec93e98e
로그인 계정: dalan
GPG 키 ID: EE3B917931C07B64
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제

2
.gitignore vendored
파일 보기

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

파일 보기

@ -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: