srobo / nemesis

User management web interface
https://studentrobotics.org/userman/
1 stars 2 forks source link

Reduce munging of the Python Path in scripts #13

Open trickeydan opened 3 years ago

trickeydan commented 3 years ago
nemesis_root = os.path.dirname(os.path.abspath(__file__)) + "/../"
sys.path.insert(0, nemesis_root)

This really shouldn't be necessary :(

PeterJCLaw commented 3 years ago

Nemesis is currently designed around being deployed as a repo, rather than as a Python package. As a result this is necessary for now. I think there would be much larger changes needed to nemesis (and its deployment) to change this.