Skip to content

problem with PyInstaller #38

@Zenahr

Description

@Zenahr

I'm packaging a script as an executable via PyInstaller.

better_profanity always looks for a file in this directory: C:\\Users\\<USERNAME>\\AppData\\Local\\Temp\\_MEI199002\\better_profanity\\alphabetic_unicode.json

Is there a way to select the file for that manually as we can for the wordlist?

Traceback:
Traceback (most recent call last):
  File "gui.py", line 15, in 
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 546, in exec_module
  File "app\app.py", line 3, in 
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 546, in exec_module
  File "better_profanity\__init__.py", line 3, in 
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 546, in exec_module
  File "better_profanity\better_profanity.py", line 5, in 
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 546, in exec_module
  File "better_profanity\constants.py", line 14, in 
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\\\AppData\\Local\\Temp\\_MEI199002\\better_profanity\\alphabetic_unicode.json'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions