... | ... | @@ -45,17 +45,15 @@ But the one provided shoud be up-to-date |
|
|
Our policy is to not mess with default system paths. So instead we advise to
|
|
|
use a environment variable to add to python the path to our build directory.
|
|
|
In general adding the following lines to your *.bashrc* (Linux) or *.profile* (MacOS)
|
|
|
file does the trick. Of course you have to replace *mybuildpath* by the path to
|
|
|
your own building directory (in the example above `~/Desktop/LMGC90/lmgc90_user/build`).
|
|
|
Basically it is what returns the command *pwd* when ran in the same directory you
|
|
|
ran the commands *cmake* and *make*.
|
|
|
|
|
|
file does the trick. Of course you have to replace *mysourcepath* by the path to
|
|
|
your own `lmgc90_user` directory (in the example above `~/Desktop/LMGC90/lmgc90_user/`).
|
|
|
```shell
|
|
|
if [ -z ${PYTHONPATH} ]; then
|
|
|
export PYTHONPATH=mybuildpath
|
|
|
export PYTHONPATH=mysourcepath/build
|
|
|
else
|
|
|
export PYTHONPATH=${PYTHONPATH}:mybuildpath
|
|
|
export PYTHONPATH=${PYTHONPATH}:mysourcepath/build
|
|
|
fi
|
|
|
export PATH=${PATH}:mysourcepath/src/addons
|
|
|
```
|
|
|
|
|
|
## <a name=precompiled> Windows </a> ##
|
... | ... | |