Browse Source

Fixed single file execution

tags/1.0
Rémi BERTHO 11 months ago
parent
commit
33ec93e98e
Signed by: Rémi BERTHO <remi.bertho@dalan.fr> GPG Key ID: EE3B917931C07B64
2 changed files with 5 additions and 2 deletions
  1. 1
    1
      .gitignore
  2. 4
    1
      SimplePanoramaViewer

+ 1
- 1
.gitignore View File

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

+ 4
- 1
SimplePanoramaViewer View File

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

Loading…
Cancel
Save