1 Debian patch touch this file
-
Use path to Debian's python3 interpreter
- Author
- Diane Trout <[email protected]>
- Forwarded
- no
| •1 | #!/usr/bin/python3 |
| 2 | # |
| 3 | # Example stub for running `python -m spin` |
| 4 | # |
| 5 | # Copy this into your project root. |
| 6 | |
| 7 | import os |
| 8 | import sys |
| 9 | import runpy |
| 10 | |
| 11 | sys.path.remove(os.path.abspath(os.path.dirname(sys.argv[0]))) |
| 12 | try: |
| 13 | runpy.run_module("spin", run_name="__main__") |
| 14 | except ImportError: |
| 15 | print("Cannot import spin; please install it using") |
| 16 | print() |
| 17 | print(" pip install spin") |
| 18 | print() |
| 19 | sys.exit(1) |