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 |
||
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
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__)) |
||
0 ignored issues
–
show
The name
parent_dir does not conform to the constant naming conventions ((([A-Z_][A-Z0-9_]*)|(__.*__))$ ).
This check looks for invalid names for a range of different identifiers. You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements. If your project includes a Pylint configuration file, the settings contained in that file take precedence. To find out more about Pylint, please refer to their site.
Loading history...
|
|||
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 |