| Total Complexity | 0 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | """Package entry point.""" |
||
| 2 | |||
| 3 | import importlib |
||
| 4 | import os |
||
| 5 | import sys |
||
| 6 | |||
| 7 | from gitman.cli import main |
||
| 8 | |||
| 9 | |||
| 10 | # Declare itself as package if needed for better debugging support |
||
| 11 | # pylint: disable=multiple-imports,wrong-import-position,redefined-builtin,used-before-assignment |
||
| 12 | if __name__ == '__main__' and __package__ is None: # pragma: no cover |
||
| 13 | 1 | parent_dir = os.path.abspath(os.path.dirname(__file__)) |
|
| 14 | sys.path.append(os.path.dirname(parent_dir)) |
||
| 15 | __package__ = os.path.basename(parent_dir) |
||
| 16 | importlib.import_module(__package__) |
||
| 17 | |||
| 18 | |||
| 19 | if __name__ == '__main__': # pragma: no cover |
||
| 20 | main() |
||
| 21 |