Skip to content

Commit

Permalink
Install navsyncdb and navpgdump directly
Browse files Browse the repository at this point in the history
Instead of using a "double" shim to install these executable scripts,
install their respective modules directly.  The existing shim scripts
would run the `main()` method as a side-effect of the module being
imported, which was a bad idea.  With the new script installation
method, these commands would essentially run twice on every
invocation.
  • Loading branch information
lunkwill42 committed Mar 20, 2024
1 parent 7f0f71c commit f1e2bea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ navdf = "nav.bin.navdf:main"
navdump = "nav.bin.navdump:main"
naventity = "nav.bin.naventity:main"
navoidverify = "nav.bin.navoidverify:main"
navpgdump = "nav.bin.navpgdump:main"
navpgdump = "nav.pgdump:main"
navsnmp = "nav.bin.navsnmp:main"
navstats = "nav.bin.navstats:main"
navsyncdb = "nav.bin.navsyncdb:main"
navsyncdb = "nav.pgsync:main"
navsynctypes = "nav.bin.navsynctypes:main"
navtopology = "nav.bin.navtopology:main"
navuser = "nav.bin.navuser:main"
Expand Down
5 changes: 0 additions & 5 deletions python/nav/bin/navpgdump.py

This file was deleted.

4 changes: 0 additions & 4 deletions python/nav/bin/navsyncdb.py

This file was deleted.

0 comments on commit f1e2bea

Please sign in to comment.