Skip to content

Commit bb4f551

Browse files
committed
Implemented liblistloader for word lists
Fixes #1
1 parent 410ec24 commit bb4f551

File tree

4 files changed

+5
-4505
lines changed

4 files changed

+5
-4505
lines changed

libnamegen/classic.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
# import os
1919
import random
2020
import libprogress
21-
22-
# following block is for a file requirement
23-
# if not os.path.isfile("libnamegen/desiquintans.com_nounlist.txt"):
24-
# print("ERROR: desiquintans.com_nounlist.txt could not be found!")
21+
import liblistloader.desiquintans_nounlist
2522

2623

2724
# Generation method
@@ -33,11 +30,7 @@ def gen(count=1, debug=False):
3330
count -- the amount of names to generate (default 1)
3431
debug -- whether debug should be printed (default False)
3532
"""
36-
# with open("libnamegen/desiquintans.com_nounlist.txt") as f: # open file
37-
# words = f.readlines() # read all lines into a list
38-
# # closing the file is not required, the with block does that for us
39-
# words = [x.strip("\n") for x in words] # remove the "\n" from each word
40-
words = ["funeral", "union", "tale", "effort", "community"]
33+
words = liblistloader.desiquintans_nounlist.words
4134
wsuffixes = ["ator", "man", "guy", "ifier", "anator", ""] # suffixes
4235
wprefixes = ["Mr", "The", ""] # prefixes
4336
names = list() # initialize the names list variable

0 commit comments

Comments
 (0)