I'm new to using python for larger projects. I figured out following folder structure for my python project:
project
├── doc
├── src
│ ├── hardware
│ ├── devices
│ │ ├── device1
│ │ └── device2
│ ├── measurement
│ ├── ui
│ └── util
└── tests
├── hardware
├── devices
│ ├── device1
│ └── device2
├── measurement
├── ui
└── util
The tests folder contains unittests for modules in the soure folder. Is this the right approach for such a program?
How should I do the importing? I thought to add the root folder to the python path and import every module absolute from the root path. Should I do this so?
This program is used on several coimputers. How should I deploy it? Currently I use SVN and every computer gets the whole project and starts it from there. There is one disadvantage, I have to add the prject path to the PYTHONPATH on every computer.