pycharm Working directory error

简介: /***************************************************************************** * pycharm Working directory error * 说明: * 今天在使用pycharm进行autoGenSystem工具软件时总是得不到正确的目录,最后 * 通过获取当前路径,发现当前路径:是"E:\Python\HardwareManager";不是"E:\ * Python\AutoGenSystem";于是找到问题所在,需要调整工作目录。
/*****************************************************************************
 *                  pycharm Working directory error
 * 说明:
 *     今天在使用pycharm进行autoGenSystem工具软件时总是得不到正确的目录,最后
 * 通过获取当前路径,发现当前路径:是"E:\Python\HardwareManager";不是"E:\
 * Python\AutoGenSystem";于是找到问题所在,需要调整工作目录。
 *
 *                                           2016-1-1 深圳 南山平山村 曾剑锋
 ****************************************************************************/

一、获取当前目录路径来确定问题:
    print os.getcwd()

二、修改如下工作目录:

 

 

目录
相关文章
|
编解码 C++ Python
成功解决LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib” error: command 'D:\\Program Files (x86)\\Micr
成功解决LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib” error: command 'D:\\Program Files (x86)\\Micr
成功解决LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib” error: command 'D:\\Program Files (x86)\\Micr
|
Java 开发工具 Android开发
Android Studio 解决:error adding symbols: File in wrong format clang++.exe: error: linker command...
错误日志: Error:FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:externalNativeBuildDebug'.
6590 0
|
缓存 JavaScript
Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs‘TypeError: Cannot read proper
Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs‘TypeError: Cannot read proper
160 0
|
8月前
|
Java Maven
Error executing CMake: Cannot run program “cmake“
Error executing CMake: Cannot run program “cmake“
82 0
|
8月前
|
iOS开发 Perl
Xcode 10.2.1 Error:library not found for -lstdc++.6.0.9
Xcode 10.2.1 Error:library not found for -lstdc++.6.0.9
90 0
|
8月前
|
C++ Python
python安装HLL报错unable to find vcvarsall.bat
通过上述方法之一,你应该能够解决"unable to find vcvarsall.bat"的错误,并成功安装HLL或其他需要编译的Python扩展。确保在安装之前先安装了Visual C++构建工具。
87 0
AndroidStudio:Path is not a readable directory.
AndroidStudio:Path is not a readable directory.
138 0
|
Java
编译OpenJDK:invalid configuration Files: machine Files not recognized
编译OpenJDK:invalid configuration Files: machine Files not recognized
120 0
|
开发工具 git
报错解决:your local changes to the following files would be overwritten by merge: .idea/workspa
报错解决:your local changes to the following files would be overwritten by merge: .idea/workspa
479 0
报错解决:your local changes to the following files would be overwritten by merge: .idea/workspa
IDEA:cannot start process,the working directory ‘***‘ does not exist
IDEA:cannot start process,the working directory ‘***‘ does not exist