I have Visual Studio 2017
and want to run Python
.
Everything I choose part of the code and select "send to interactive window", it showed error, ie
Traceback (most recent call last):
File "", line 1, in
NameError: name 'BHI_DLL' is not defined
I check the working directory and it always show
os.getcwd()
'C:\\Python27'
How can I change the working directory to the folder where all my files are saved?
thank you very much
您可以尝试使用Code Runner扩展程序而不是“交互”窗口来运行代码。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.