Compare commits

..

No commits in common. "2849b3767027c4ca7db3d88e1c8fe136999d5fe0" and "c1e23ab250a75ea5ae5fba8411756b131d2907fe" have entirely different histories.

2 changed files with 16 additions and 15 deletions

View File

@ -63,6 +63,8 @@ class Parser:
def interactive_mode(parser): def interactive_mode(parser):
while cmd := input("Please enter command (Press <Enter> to exit)\n"): while cmd := input("Please enter command (Press <Enter> to exit)\n"):
if not cmd:
break
if res := parser.parse((cmd,)): if res := parser.parse((cmd,)):
print(res) print(res)

View File

@ -1,41 +1,40 @@
import subprocess import subprocess
import sys
from pathlib import Path from pathlib import Path
def ex_dsl(): def ex_dsl():
scriptpath = Path.cwd() / "examples" / "dsl" / "." path = Path.cwd() / "examples" / "dsl" / "."
subprocess.run([sys.executable, str(scriptpath)]) subprocess.run(["py", str(path)])
def ex_events(): def ex_events():
scriptpath = Path.cwd() / "examples" / "events" / "." path = Path.cwd() / "examples" / "events" / "."
subprocess.run([sys.executable, str(scriptpath)]) subprocess.run(["py", str(path)])
def ex_gui(): def ex_gui():
scriptpath = Path.cwd() / "examples" / "gui" / "." path = Path.cwd() / "examples" / "gui" / "."
subprocess.run([sys.executable, str(scriptpath)]) subprocess.run(["py", str(path)])
def ex_levels(): def ex_levels():
scriptpath = Path.cwd() / "examples" / "levels" / "." path = Path.cwd() / "examples" / "levels" / "."
subprocess.run([sys.executable, str(scriptpath)]) subprocess.run(["py", str(path)])
def ex_midi(): def ex_midi():
scriptpath = Path.cwd() / "examples" / "midi" / "." path = Path.cwd() / "examples" / "midi" / "."
subprocess.run([sys.executable, str(scriptpath)]) subprocess.run(["py", str(path)])
def ex_obs(): def ex_obs():
scriptpath = Path.cwd() / "examples" / "obs" / "." path = Path.cwd() / "examples" / "obs" / "."
subprocess.run([sys.executable, str(scriptpath)]) subprocess.run(["py", str(path)])
def ex_observer(): def ex_observer():
scriptpath = Path.cwd() / "examples" / "observer" / "." path = Path.cwd() / "examples" / "observer" / "."
subprocess.run([sys.executable, str(scriptpath)]) subprocess.run(["py", str(path)])
def test(): def test():