Browse Source

detection of windows command style wip

master
poikilos 8 years ago
committed by Jacob Gustafson
parent
commit
76aa06c7e3
  1. 9
      expertmm.py
  2. 16
      pythoninfo.py

9
expertmm.py

@ -5,10 +5,11 @@ import copy
verbose_enable = False
#os_name = "GNU/Linux"
#if os.sep=="\\":
# os_name = "windows"
# print("Windows detected")
os_name = "GNU/Linux"
if os.sep=="\\":
os_name = "windows"
print("Windows detected")
#TODO: deprecate os_name--still needed for detecting whether to use squote in singleimage.py (when not Windows, squote is "'" otherwise "")
#formerly pcttext:
#uppercase_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

16
pythoninfo.py

@ -3,11 +3,11 @@ from expertmm import *
python_exe_path = "python"
if os_name=="windows":
try:
alt_path = "C:\\python27\python.exe"
if os.path.isfile(alt_path):
python_exe_path = alt_path
#else may be in path--assume installer worked
except:
pass # do nothing
#if os_name=="windows":
try:
alt_path = "C:\\python27\python.exe"
if os.path.isfile(alt_path):
python_exe_path = alt_path
#else may be in path--assume installer worked
except:
pass # do nothing

Loading…
Cancel
Save