AlbertaSat / ex3_simulated_subsystems

Simulated subsystems for use with the simulated software architecture in AlbertaSats ExAlta3 Mission.
4 stars 1 forks source link

Remove `sys.path.append` by running scripts as modules #40

Open cbebe opened 9 months ago

cbebe commented 9 months ago

We can avoid having to call sys.path.append by running the script as a module in the root directory.

Example (EPS subsystem):

$ python -m EPS.eps_subsystem
Starting EPS subsystem on port 1801

I tried removing sys.path.append("../") from the script and it runs just fine.

I'm not sure if this would be the right approach, though, I would still need to see how the project would be structured inside the container.