First pass at re-implementing wx 2.8 preference

This commit is contained in:
Ebag333
2017-03-27 16:57:55 -07:00
parent 57a1f71fdd
commit 78a8c105f4

14
pyfa.py
View File

@@ -275,6 +275,20 @@ if __name__ == "__main__":
else:
pyfalog.info("Running in a thawed state.")
# FIX THIS
try:
if options.force28 is True:
wxversion.select('2.8')
else:
wxversion.select(['3.0', '2.8'])
if hasattr(sys, 'frozen'):
pyfalog.info("Running in frozen state. Skipping wx validation.")
pyfalog.debug("wxPython version: {0}.", wxversion.getInstalled())
elif options.force28 is True:
# Remove existing wxPython
wxversion.select('2.8')
if hasattr(sys, 'frozen') and wx is not None:
pyfalog.info("Running in frozen state with wx installed. Skipping wx validation.")
pyfalog.debug("wxPython version: {0}.", wxversion.getInstalled())