diff --git a/fortls.py b/fortls.py deleted file mode 100755 index d181aaec..00000000 --- a/fortls.py +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python3 -# file used for unit testing -if __name__ == "__main__": - import fortls - - fortls.main() diff --git a/fortls/__main__.py b/fortls/__main__.py new file mode 100644 index 00000000..868d99ef --- /dev/null +++ b/fortls/__main__.py @@ -0,0 +1,4 @@ +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: