Skip to content

Commit dca629c

Browse files
committed
Convert karta_analyze_src into a console script
1 parent 0ba209c commit dca629c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@
2323
"License :: OSI Approved :: MIT License (MIT License)",
2424
"Operating System :: OS Independent",
2525
],
26+
entry_points={
27+
'console_scripts': [
28+
'karta_analyze_src = karta.karta_analyze_src:main'
29+
]
30+
},
2631
zip_safe=False
2732
)

src/karta/karta_analyze_src.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/python3
22

3-
from multiprocessing import Semaphore
43
import sys
54
import argparse
65
import logging
@@ -297,7 +296,7 @@ def verify_archives_and_objects(using_archives, couples, prompter):
297296

298297
return (bin_dirs, archive_paths) if not error_occured else None
299298

300-
def main(args):
299+
def main(args=None):
301300
"""Create a .json configuration for the open source library version.
302301
303302
Args:

0 commit comments

Comments
 (0)