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:

View file

@ -84,7 +84,7 @@ Blaze
[final]
tail
shine
shine
shade
breeze
foot
@ -103,7 +103,7 @@ talon
feather
storm
leap
flight
flight
petal
fall
wing
@ -125,3 +125,4 @@ shard
scar
blade
flame
[end]

View file

@ -67,3 +67,4 @@ Ashes
Flowers
Petals
Blossoms
[end]