Update terminis.py
This commit is contained in:
parent
65fd500a40
commit
db2065997c
@ -13,6 +13,7 @@ import sched
|
|||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import locale
|
import locale
|
||||||
|
import distutils.spawn
|
||||||
try:
|
try:
|
||||||
import configparser
|
import configparser
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -727,10 +728,10 @@ def main():
|
|||||||
|
|
||||||
def edit():
|
def edit():
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
if "PROGRAMFILES(X86)" in os.environ:
|
if distutils.spawn.find_executable("edit"):
|
||||||
command = "notepad"
|
|
||||||
else:
|
|
||||||
command = "edit"
|
command = "edit"
|
||||||
|
else:
|
||||||
|
command = "notepad"
|
||||||
else:
|
else:
|
||||||
command = "${EDITOR:-vi}"
|
command = "${EDITOR:-vi}"
|
||||||
os.system(command+" "+Controls.FILE_PATH)
|
os.system(command+" "+Controls.FILE_PATH)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user