Browse Source

Add a working entrypoint again.

pull/2/head
Chris Smith 7 years ago
parent
commit
1cee41eac5
2 changed files with 6 additions and 2 deletions
  1. 5
    1
      docker_rerun.py
  2. 1
    1
      setup.py

+ 5
- 1
docker_rerun.py View File

@@ -317,5 +317,9 @@ def main(argv, out):
317 317
             subprocess.check_call(command)
318 318
 
319 319
 
320
-if __name__ == "__main__":
320
+def entrypoint():
321
+    """Entrypoint for script use."""
321 322
     main(sys.argv[1:], sys.stdout)
323
+
324
+if __name__ == "__main__":
325
+    entrypoint()

+ 1
- 1
setup.py View File

@@ -55,7 +55,7 @@ setup(
55 55
 
56 56
     entry_points={
57 57
         'console_scripts': [
58
-            'docker-rerun=docker_rerun:main',
58
+            'docker-rerun=docker_rerun:entrypoint',
59 59
         ],
60 60
     },
61 61
 )

Loading…
Cancel
Save