--- nfo/projects/netfraggle/bin/FraggleCtlModules.py 2004/09/01 21:43:30 1.1 +++ nfo/projects/netfraggle/bin/FraggleCtlModules.py 2004/09/01 22:29:47 1.2 @@ -1,4 +1,5 @@ import os +import string import fraggleParserXML from fraggleEngine import * @@ -17,7 +18,18 @@ def ScanModules(self): os.chdir('..') self.dir = os.listdir(os.path.join(os.getcwd(),'modules')) - print self.dir - pass + for i in self.dir: + self.dir[self.dir.index(i)] = string.rstrip(i,'.py') + + + if len(self.dir) != 0: + try: + for i in self.dir: + self.modules = {i:__import__(i)} + print self.modules + print self.dir + except ImportError: + pass + \ No newline at end of file