-
Notifications
You must be signed in to change notification settings - Fork 67
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
Whitebox resetting working directory to whitebox directory in Anaconda environment #30
Comments
Ok, that makes sense. Thanks for the quick response! Just to follow up: |
You can either provide absolute paths to input files or use I noticed that every time a tool is executed, the working directory is changed to the wbt exe path. Therefore, you can no longer use
|
This resolved my issue completely. However, I still cannot use relative paths after I use
Thanks! |
Description
When using any whitebox functions for python, the current working directory is reset to the whitebox directory in my anaconda environment (e.g. /home/user_name/minconda3/envs/osgeo-env-v1/lib/python3.8/site-packages/whitebox). This causes many problems, since I am using whitebox functions across multiple scripts for my automated workflow.
To clarify, after importing whitebox, the current working directory is set to my project directory where my python file is calling whitebox, which is what I want. But after using a function it is reset to the whitebox directory, so the functions do not end up running.
I am attempting this in jupyter notebook.
What I Did
Below is the error messages I receive.
Thank you for your time in reading this.
The text was updated successfully, but these errors were encountered: