Configtool: try to educate the user about the non-support of Python3.
Let's cross fingers this helps enough to avoid users kicking this great tool away on the first failed try. :-) This should help to tackle issue #151.
This commit is contained in:
parent
0991e4a41f
commit
e53424ba22
|
|
@ -1,5 +1,12 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
if sys.version_info.major >= 3:
|
||||||
|
print("You are currently running Python3. Python3 is not supported, because\n"
|
||||||
|
"there is no wxPython for Python3. Please try running with Python2.\n"
|
||||||
|
"It often works to type \"python2 configtool.py\" in the command line.")
|
||||||
|
sys.exit(-1)
|
||||||
|
|
||||||
import wx
|
import wx
|
||||||
import os.path
|
import os.path
|
||||||
import inspect
|
import inspect
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue