From 65fd500a4045383ab90f028ccc3dd059d4887e11 Mon Sep 17 00:00:00 2001 From: adrienmalin <41926238+adrienmalin@users.noreply.github.com> Date: Fri, 15 Feb 2019 01:28:22 +0100 Subject: [PATCH] edit for windows 32 bits --- terminis/terminis.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/terminis/terminis.py b/terminis/terminis.py index f26444c..d2c1980 100644 --- a/terminis/terminis.py +++ b/terminis/terminis.py @@ -727,9 +727,13 @@ def main(): def edit(): if sys.platform == "win32": - os.system("notepad "+Controls.FILE_PATH) + if "PROGRAMFILES(X86)" in os.environ: + command = "notepad" + else: + command = "edit" else: - os.system("${EDITOR:-vi} "+Controls.FILE_PATH) + command = "${EDITOR:-vi}" + os.system(command+" "+Controls.FILE_PATH) def usage(): print("Usage:")