Major recoding of plugins/namegen.py and associated files

This commit is contained in:
Luke Rogers 2012-02-24 11:40:26 +13:00
parent cb4a27e2a2
commit 265f2815d8
4 changed files with 35 additions and 17 deletions

View file

@ -184,7 +184,14 @@ class Molecule:
else:
self.cursection.append(line)
fp.close()
def list_modules(self):
files = os.listdir(NAMEDIR)
modules = []
for i in files:
modules.append(os.path.splitext(i)[0])
return modules
def name(self):
n = []
if len(self.nametbl["first"]) > 0: