mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-11-22 19:10:47 +00:00
add scripts.py
This commit is contained in:
parent
bc508f8982
commit
a460c6aeb0
@ -27,7 +27,7 @@ requires = ["poetry-core>=1.0.0"]
|
|||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
dsl = "examples.dsl.__main__:main"
|
dsl = "scripts:ex_dsl"
|
||||||
midi = "examples.midi.__main__:main"
|
midi = "scripts:ex_midi"
|
||||||
obs = "examples.obs.__main__:main"
|
obs = "scripts:ex_obs"
|
||||||
observer = "examples.observer.__main__:main"
|
observer = "scripts:ex_observer"
|
||||||
|
22
scripts.py
Normal file
22
scripts.py
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import subprocess
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
def ex_dsl():
|
||||||
|
path = Path.cwd() / "examples" / "dsl" / "."
|
||||||
|
subprocess.run(["py", str(path)])
|
||||||
|
|
||||||
|
|
||||||
|
def ex_midi():
|
||||||
|
path = Path.cwd() / "examples" / "midi" / "."
|
||||||
|
subprocess.run(["py", str(path)])
|
||||||
|
|
||||||
|
|
||||||
|
def ex_obs():
|
||||||
|
path = Path.cwd() / "examples" / "obs" / "."
|
||||||
|
subprocess.run(["py", str(path)])
|
||||||
|
|
||||||
|
|
||||||
|
def ex_observer():
|
||||||
|
path = Path.cwd() / "examples" / "observer" / "."
|
||||||
|
subprocess.run(["py", str(path)])
|
Loading…
Reference in New Issue
Block a user