TwitchPlaysPokemon / pokecat

4 stars 4 forks source link

move VERSION file to module to be installable via pip #4

Closed Felk closed 6 years ago

Felk commented 6 years ago

Currently, after installing pokecat via pip, executing the module fails as the VERSION does not get distributed properly:

C:\Users\felk>python -m pokecat
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python36-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Program Files (x86)\Python36-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\pokecat\__main__.py", line 27, in <module>
    __version__ = open(os.path.join(ROOT_DIR, 'VERSION')).read().strip()
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Program Files (x86)\\Python36-32\\lib\\site-packages\\pokecat\\VERSION'