Trying to import a file (meleeWeapons.py
) into my main file (main.py
) but it does not seem to be working.
The file directy is as follows
Domination
|_main.py
|_meleeWeapons.py
|_test.py
When I load from Domination import meleeWeapons
or from . import meleeWeapons
into main.py, trying to load any objects from meleeWeapons into main doesnt work, flagging "myObject" is not defined
. When I do the from Domination import meleeWeapons
approach, the error "Import "Dominations" could not be resolved"