3 Commits

Author SHA1 Message Date
2849b37670 remove redundant if test 2023-07-04 19:52:55 +01:00
7732a26c40 issue where subprocess not inheriting virtual env
see SO python-subprocess-doesnt-inherit-virtual-environment
2023-07-04 19:52:24 +01:00
c1e23ab250 typo 2023-07-01 20:26:44 +01:00
3 changed files with 16 additions and 17 deletions

View File

@@ -405,7 +405,7 @@ The following methods are available
The following properties are available
- `A1 - A5`: boolean
- `B1 - A3`: boolean
- `B1 - B3`: boolean
- `samplerate`: int, (22050, 24000, 32000, 44100, 48000, 88200, 96000, 176400, 192000)
- `bitresolution`: int, (8, 16, 24, 32)
- `channel`: int, from 1 to 8

View File

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