Skip to content

Commit

Permalink
Merge pull request google#102 from pwroberts/master
Browse files Browse the repository at this point in the history
Fixed "failed to execute script gui" error when running under PyInstaller
  • Loading branch information
rsuderman authored Jun 16, 2016
2 parents 2f7b8a5 + 7ea9580 commit 3d3c268
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spatialmedia/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@
try:
from Tkinter import *
except ImportError:
try:
from tkinter import *
except ImportError:
print("Tkinter library is not available.")
exit(0)
print("Tkinter library is not available.")
exit(0)

path = os.path.dirname(sys.modules[__name__].__file__)
path = os.path.join(path, '..')
Expand Down

0 comments on commit 3d3c268

Please sign in to comment.