diff --git a/fortls/__main__.py b/fortls/__main__.py new file mode 100644 index 00000000..29c2e0a6 --- /dev/null +++ b/fortls/__main__.py @@ -0,0 +1,5 @@ +from . import main + + +if __name__ == "__main__": + main() diff --git a/test/setup_tests.py b/test/setup_tests.py index d081fc21..f34a53eb 100644 --- a/test/setup_tests.py +++ b/test/setup_tests.py @@ -26,7 +26,8 @@ def check_post_msg(result: dict, msg: str, severity: int): def run_request(request, fortls_args: list[str] = None): command = [ sys.executable, - str(root_dir / "fortls.py"), + "-m", + "fortls", "--incremental_sync", ] if fortls_args: