Skip to content

Commit

Permalink
Allow running python -m fortls
Browse files Browse the repository at this point in the history
  • Loading branch information
awvwgk committed Sep 19, 2022
1 parent 8077e2f commit 2ab2731
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions fortls/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
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 2ab2731

Please sign in to comment.