diff --git a/pyproject.toml b/pyproject.toml index dde307d..0266a79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,6 +23,6 @@ requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] -obs = "examples.xair_obs.__main__:main" -xair = 'scripts:test_xair' -x32 = 'scripts:test_x32' +obs = "scripts:ex_obs" +xair = "scripts:test_xair" +x32 = "scripts:test_x32" diff --git a/scripts.py b/scripts.py index 386f060..819aabc 100644 --- a/scripts.py +++ b/scripts.py @@ -2,6 +2,11 @@ import subprocess from pathlib import Path +def ex_obs(): + path = Path.cwd() / "examples" / "xair_obs" / "." + subprocess.run(["py", str(path)]) + + def test_xair(): path = Path.cwd() / "tests" / "xair" subprocess.run(["pytest", "-v", str(path)])