1 |
import os |
import os |
2 |
|
import string |
3 |
|
|
4 |
import fraggleParserXML |
import fraggleParserXML |
5 |
from fraggleEngine import * |
from fraggleEngine import * |
18 |
def ScanModules(self): |
def ScanModules(self): |
19 |
os.chdir('..') |
os.chdir('..') |
20 |
self.dir = os.listdir(os.path.join(os.getcwd(),'modules')) |
self.dir = os.listdir(os.path.join(os.getcwd(),'modules')) |
21 |
print self.dir |
for i in self.dir: |
22 |
pass |
self.dir[self.dir.index(i)] = string.rstrip(i,'.py') |
23 |
|
|
24 |
|
|
25 |
|
if len(self.dir) != 0: |
26 |
|
try: |
27 |
|
for i in self.dir: |
28 |
|
self.modules = {i:__import__(i)} |
29 |
|
print self.modules |
30 |
|
print self.dir |
31 |
|
except ImportError: |
32 |
|
pass |
33 |
|
|
34 |
|
|
35 |
|
|