mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
add scripts.py
This commit is contained in:
parent
4aacc60857
commit
f6218d2032
@ -24,5 +24,5 @@ requires = ["poetry-core>=1.0.0"]
|
|||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
obs = "examples.obs.__main__:main"
|
obs = "scripts:ex_obs"
|
||||||
observer = "examples.observer.__main__:main"
|
observer = "scripts:ex_observer"
|
||||||
|
12
scripts.py
Normal file
12
scripts.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import subprocess
|
||||||
|
from pathlib import 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