Skip to content

Commit 2ab2731

Browse files
committed
Allow running python -m fortls
1 parent 8077e2f commit 2ab2731

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

fortls/__main__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from . import main
2+
3+
4+
if __name__ == "__main__":
5+
main()

test/setup_tests.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def check_post_msg(result: dict, msg: str, severity: int):
2626
def run_request(request, fortls_args: list[str] = None):
2727
command = [
2828
sys.executable,
29-
str(root_dir / "fortls.py"),
29+
"-m",
30+
"fortls",
3031
"--incremental_sync",
3132
]
3233
if fortls_args:

0 commit comments

Comments
 (0)