-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Working dir setting in Preferences not respected #85
Comments
Hello. When running a file in Spyder, the working directory is normally set to the directory of the file being executed. This is true whether or not you use line_profiler. If you want to use another directory as the working directory when running the script, you need to click on the menu item Let me know if this does not help. |
Thanks for quick reply. My project structure looks like the picture above. However, in Line_profiler, I get the following error. |
Hmmm, thanks for the extra information, but it looks like something is different on your machine and mine, so I don't know at the moment ... 🤔 Can you help me find out what is happening?
I will be grateful for any information you can give me to help nail down this problem. There may be a bug in the plugin. |
Mandatory:applaunchservices >=0.3.0 : 0.3.0 (OK) Optional:cython >=0.21 : 0.29.33 (OK) Spyder plugins:spyder_line_profiler.spyder.plugin 0.3.2 : 0.3.2 (OK)
Thanks. |
Thanks for the info. I tried it out and there is a bug in the line profiler plugin in that it does not pick up the setting in the Preferences when the working directory is set to "The current working directory", which is what you are doing. I will try to fix that. However, I can work around the bug by using the same option in How do you run the script in the line profiler? Can you see anything that's different on your computer from the video? |
Thank you for your efforts. I usually set
It's a bit odd, even for me. |
Hello.
Thanks for letting me use your great program.
I'm using Spyder with the working directory set to the Project folder.
But In line_profiler, the working directory is set to the directory of the file being excuted.
In line_profiler how to change working directory option?
thanks.
The text was updated successfully, but these errors were encountered: