| Total Complexity | 1 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 15 | class SDoc2Command(Command): |
||
| 16 | """ |
||
| 17 | This command starts executing sdoc2 component. |
||
| 18 | """ |
||
| 19 | |||
| 20 | name = 'sdoc2' |
||
| 21 | |||
| 22 | arguments = [ |
||
| 23 | { |
||
| 24 | 'name': 'main_sdoc_file', |
||
| 25 | 'description': "The 'sdoc' file which we want to parse", |
||
| 26 | 'required': True |
||
| 27 | } |
||
| 28 | ] |
||
| 29 | |||
| 30 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 31 | def handle(self): |
||
| 32 | """ |
||
| 33 | Reads the arguments and starts SDoc application. |
||
| 34 | """ |
||
| 35 | self.output = SdocStyle(self.input, self.output) |
||
| 36 | |||
| 37 | main_sdoc_file = self.argument('main_sdoc_file') |
||
| 38 | |||
| 39 | sdoc = SDoc(self.output) |
||
| 40 | sdoc.test_sdoc2(main_sdoc_file) |
||
| 41 | |||
| 43 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.