edit for windows 32 bits
This commit is contained in:
parent
865ded6ef1
commit
65fd500a40
@ -727,9 +727,13 @@ def main():
|
|||||||
|
|
||||||
def edit():
|
def edit():
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
os.system("notepad "+Controls.FILE_PATH)
|
if "PROGRAMFILES(X86)" in os.environ:
|
||||||
|
command = "notepad"
|
||||||
|
else:
|
||||||
|
command = "edit"
|
||||||
else:
|
else:
|
||||||
os.system("${EDITOR:-vi} "+Controls.FILE_PATH)
|
command = "${EDITOR:-vi}"
|
||||||
|
os.system(command+" "+Controls.FILE_PATH)
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print("Usage:")
|
print("Usage:")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user