12 This script can be used via the commandline as well. |
12 This script can be used via the commandline as well. |
13 """ |
13 """ |
14 |
14 |
15 from __future__ import unicode_literals |
15 from __future__ import unicode_literals |
16 |
16 |
|
17 import os |
|
18 import sys |
|
19 |
|
20 sys.path.insert(1, os.path.dirname(__file__)) |
|
21 |
17 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__ |
22 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__ |
18 |
23 |
19 try: # Only for Py2 |
24 try: # Only for Py2 |
20 import Globals.compatibility_fixes # __IGNORE_WARNING__ |
25 import Globals.compatibility_fixes # __IGNORE_WARNING__ |
21 except (ImportError): |
26 except (ImportError): |
22 pass |
27 pass |
23 |
28 |
24 import glob |
29 import glob |
25 import os |
|
26 import sys |
|
27 import fnmatch |
30 import fnmatch |
28 |
31 |
29 import Utilities.ModuleParser |
32 import Utilities.ModuleParser |
30 from DocumentationTools.ModuleDocumentor import ModuleDocument |
33 from DocumentationTools.ModuleDocumentor import ModuleDocument |
31 from DocumentationTools.IndexGenerator import IndexGenerator |
34 from DocumentationTools.IndexGenerator import IndexGenerator |