I am using poetry There is a tree of my project:
https://i.stack.imgur.com/PSJfI.png
I have such paths in my code:
SPACESHIP_FRAMES = (
'space_game/frames/rocket/rocket_frame_1.txt',
'space_game/frames/rocket/rocket_frame_2.txt',
)
Everything is working when I run my programm both as poetry script: space-game = "space_game.game:main"
and as simple python script.
But! When I try to run space-game
after installation game as pip package I see:
FileNotFoundError: [Errno 2] No such file or directory: 'space_game/frames/rocket/rocket_frame_1.txt'
How should I modify path to txt or pyproject.toml?
I tried different ways to write paths to txt files but nothing helped.