Skip to content

Commit

Permalink
Merge pull request #197 from awvwgk/main-m
Browse files Browse the repository at this point in the history
Allow running python -m fortls
  • Loading branch information
gnikit authored Sep 19, 2022
2 parents 8077e2f + dc02c67 commit 229b10f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 0 additions & 6 deletions fortls.py

This file was deleted.

4 changes: 4 additions & 0 deletions fortls/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import main

if __name__ == "__main__":
main()
3 changes: 2 additions & 1 deletion test/setup_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 229b10f

Please sign in to comment.