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 verbose_enable = False
#os_name = "GNU/Linux" os_name = "GNU/Linux"
#if os.sep=="\\": if os.sep=="\\":
# os_name = "windows" os_name = "windows"
# print("Windows detected") 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: #formerly pcttext:
#uppercase_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" #uppercase_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

16
pythoninfo.py

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

Loading…
Cancel
Save