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