Commit 0a2b2fad authored by sumpfralle's avatar sumpfralle

handle gtk import in pyinstaller binary properly

git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@628 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 6caf64e4
...@@ -80,6 +80,9 @@ def import_gtk_carefully(): ...@@ -80,6 +80,9 @@ def import_gtk_carefully():
except NameError: except NameError:
# GTK is probably not installed - the next import will fail # GTK is probably not installed - the next import will fail
pass pass
except WindowsError:
# this happens with pyinstaller binaries - just ignore it
pass
else: else:
# add the new path to the PATH environment variable # add the new path to the PATH environment variable
if "PATH" in os.environ: if "PATH" in os.environ:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment