Total Complexity | 1 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """ |
||
14 | class GenerateCommand(Command): |
||
15 | """ |
||
16 | Class for 'generate' command. |
||
17 | """ |
||
18 | |||
19 | description = 'This command starts generating output file(s).' |
||
20 | |||
21 | name = 'generate' |
||
22 | |||
23 | arguments = [ |
||
24 | { |
||
25 | 'name': 'config_filename', |
||
26 | 'description': 'The name of a config file which you want to use (e.g. config.cfg)', |
||
27 | 'required': True |
||
28 | }, |
||
29 | { |
||
30 | 'name': 'main_sdoc_file', |
||
31 | 'description': "The 'sdoc' file which we want to parse", |
||
32 | 'required': True |
||
33 | } |
||
34 | ] |
||
35 | |||
36 | # ------------------------------------------------------------------------------------------------------------------ |
||
37 | def handle(self): |
||
38 | """ |
||
39 | Reads the arguments and starts SDoc application. |
||
40 | """ |
||
41 | config_filename = self.argument('config_filename') |
||
42 | main_sdoc_file = self.argument('main_sdoc_file') |
||
43 | |||
44 | sdoc = SDoc() |
||
45 | sdoc.set_arguments(config_filename, main_sdoc_file) |
||
46 | sdoc.main() |
||
47 | |||
49 |
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__.py
files in your module folders. Make sure that you place one file in each sub-folder.