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):
while cmd := input("Please enter command (Press <Enter> to exit)\n"):
if not cmd:
break
if res := parser.parse((cmd,)):
print(res)

View File

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