diff --git a/src/pydle.py b/src/pydle.py index ad6907b..5c282ed 100644 --- a/src/pydle.py +++ b/src/pydle.py @@ -22,7 +22,7 @@ def resource_path(relative_path): def getWord(): - lines = open(resource_path('resource/words.txt')).read().splitlines() + lines = open(resource_path('words.txt')).read().splitlines() return random.choice(lines) diff --git a/src/pydle.spec b/src/pydle.spec index b040ca0..9e77367 100644 --- a/src/pydle.spec +++ b/src/pydle.spec @@ -7,7 +7,7 @@ block_cipher = None a = Analysis(['pydle.py'], pathex=[], binaries=[], - datas=[('resource/words.txt', '.')], + datas=[('words.txt', '.')], hiddenimports=[], hookspath=[], runtime_hooks=[], diff --git a/src/resource/words.txt b/src/words.txt similarity index 100% rename from src/resource/words.txt rename to src/words.txt