Skip to content

Commit

Permalink
Merge pull request #431 from Living-with-machines/64-commandline
Browse files Browse the repository at this point in the history
Fix command line script
  • Loading branch information
rwood-97 authored May 15, 2024
2 parents db75647 + 2b3b985 commit 20bdbd0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mapreader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@
__version__ = _version.get_versions()["version"]

from mapreader.load import geo_utils

import mapreader

def print_version():
print(mapreader.__version__)
6 changes: 6 additions & 0 deletions mapreader/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from __future__ import annotations

from . import print_version

if __name__ == "__main__":
print_version()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
],
entry_points={
"console_scripts": [
"mapreader = mapreader.mapreader:main",
"mapreader = mapreader:print_version",
],
},
)

0 comments on commit 20bdbd0

Please sign in to comment.