From 981f4b57f83705fa39aaacf8b0865a37fe0b311e Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Mon, 7 Nov 2022 20:06:56 +0000 Subject: [PATCH] add ex_obs to scripts --- pyproject.toml | 6 +++--- scripts.py | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) 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)])