Skip to content

Commit 229b10f

Browse files
authored
Merge pull request #197 from awvwgk/main-m
Allow running python -m fortls
2 parents 8077e2f + dc02c67 commit 229b10f

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

fortls.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

fortls/__main__.py

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

test/setup_tests.py

Lines changed: 2 additions & 1 deletion
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)