Solve the problem where the execution path is not updated after the Pycharm file change directory

Source: Internet
Author: User

Today in the use of pycharm, due to too many files, I have a directory of files to do a collation, changed the path of some files, the results of the implementation of the time, there is a path can not find errors. Create a new test.py file

The path to print test.py at this time is:
/users/hyl/documents/workspace/python/version3+/untitled The test.py file into the Lib folder

The path to print test.py is still:
/users/hyl/documents/workspace/python/version3+/untitled Solutions

MAC OS: Shortcut key command+alt+r will pop up

Selecting Edit configurations will eject the following box,
Select Python->test, find working directory, modify the correct path here, click Apply to
Print the test.py path again

The path at this point has become:
/users/hyl/documents/workspace/python/version3+/untitled/lib Problem Solving

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.