mirror of
https://github.com/tiennm99/serena.git
synced 2026-08-01 20:21:35 +00:00
Merge branch 'feature/enhanced_cli'
This commit is contained in:
+4
-1
@@ -37,7 +37,10 @@ def _open_in_editor(path: str) -> None:
|
||||
if editor:
|
||||
subprocess.run([editor, path], check=False)
|
||||
elif sys.platform.startswith("win"):
|
||||
os.startfile(path)
|
||||
try:
|
||||
os.startfile(path)
|
||||
except OSError:
|
||||
subprocess.run(["notepad.exe", path], check=False)
|
||||
elif sys.platform == "darwin":
|
||||
subprocess.run(["open", path], check=False)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user