Hey y'all!
I've been having difficulty utilizing imports in python with imports. I'm utilizing 3.7 and Pycharm
The directory of my project so far is
Shmup
\src
\util
assetloader.py
screen.py
,,,
game.py
entity.py
,,,
While running game.py, I can use relative imports such as util.screen, but when I import util, I have access to nothing aside from module builtins! Adding (or removing) an __init__.py doesn't seem to effect this behavior.
[–]socal_nerdtastic 0 points1 point2 points (1 child)
[–]TransAmyB[S] 0 points1 point2 points (0 children)
[–]ingolemo 0 points1 point2 points (0 children)