From 76aa06c7e37ed94ecf015869f45c602590e7faf6 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Mon, 30 Jan 2017 10:01:41 -0500 Subject: [PATCH] detection of windows command style wip --- expertmm.py | 9 +++++---- pythoninfo.py | 16 ++++++++-------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/expertmm.py b/expertmm.py index 1cce9c5..6eb68f4 100644 --- a/expertmm.py +++ b/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" diff --git a/pythoninfo.py b/pythoninfo.py index f5ca820..f8fec5c 100644 --- a/pythoninfo.py +++ b/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