edit for windows 32 bits

This commit is contained in:
adrienmalin 2019-02-15 01:28:22 +01:00
parent 865ded6ef1
commit 65fd500a40

View File

@ -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:")