Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path issues everywhere #14

Open
5 tasks
matiasandina opened this issue Jun 19, 2020 · 2 comments
Open
5 tasks

path issues everywhere #14

matiasandina opened this issue Jun 19, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@matiasandina
Copy link
Owner

matiasandina commented Jun 19, 2020

There is a big number of scripts that use direct path, hardcoded. This will create portability issues

@melfnie Can you complete the list here of files that have hardcoded paths?

  • GUI.py
  • send_thermal_data.py
  • send_movement_data.py
  • rpi_network_app/app.R
  • opt_flow.py
@matiasandina
Copy link
Owner Author

At the moment, the GUI.py has hardcoded the path to homecage_quantification/
This seems to be the only thing to work and actually put the proper working directory.

@matiasandina matiasandina added enhancement New feature or request help wanted Extra attention is needed labels Oct 6, 2020
@matiasandina
Copy link
Owner Author

matiasandina commented Dec 2, 2021

In GUI.py

We can change this line to

os.chdir("/home/pi/homecage_quantification")

script_path = os.path.abspath(__file__)
script_dir = os.path.dirname(script_path) 
os.chdir(script_dir)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants