Skip to content

Commit

Permalink
setting up project script
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Jul 2, 2024
1 parent b1cd963 commit e704d20
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ dependencies = [
]

[project.urls]
Home = "https://github.com/NCAR/music-box"
Home = "https://github.com/NCAR/music-box"

[project.scripts]
music_box = "acom_music_box:main"
2 changes: 1 addition & 1 deletion src/acom_music_box/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
from .music_box_evolving_conditions import EvolvingConditions
from acom_music_box import music_box_logger
from .music_box import MusicBox

from .acom_music_box import main
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def getArgsDictionary(argPairs):



if __name__ == "__main__":
def main():
music_box_logger.progress("{}".format(__file__))
music_box_logger.progress("Start time: {}".format(datetime.datetime.now()))

Expand All @@ -56,3 +56,6 @@ def getArgsDictionary(argPairs):

music_box_logger.progress("End time: {}".format(datetime.datetime.now()))
sys.exit(0)

if __name__ == "__main__":
main()

0 comments on commit e704d20

Please sign in to comment.