dp3.bin.config ¶
DP3 Setup Config Script for creating a DP3 application.
init_parser ¶
There are two desired use-cases for this command:
Source code in dp3/bin/config.py
config_nginx ¶
Configure nginx to serve the application.
Source code in dp3/bin/config.py
get_python_directories ¶
Get the directory where the DP3 executable is located and where the DP3 library is installed.
There are two cases we need to consider:
- The package is installed in a normal way, be it in virtual environment,
in
~/.local
or in/usr/local
. The path will allways look something like/path/to/python/lib/python3.X/{site|dist}-packages/dp3
. The path to the executable will be/path/to/python/bin/dp3
. - The package is installed in editable mode, in which case the path of the package depends on the location of the repo. The path to the executable relates in no way to the path of the package, we cannot be sure. We therefore give it our best guess, which is the path of the python executable. This will be correct only in the case of a virtual environment, but it is the best we can do.
Source code in dp3/bin/config.py
config_supervisor ¶
Configure supervisor for process management. Replaces templates: DP3_EXE, DP3_APP, CONFIG_DIR, DP3_BIN, DP3_LIB