Share via

moved a .py file

James Shaw 1 Reputation point
2021-07-08T02:52:22.773+00:00

Hi guys,

I have created a new project on VS2019 with a ".py" file.

if i move the ".py" file to a different location using windows explorer, and then re-open the VS2019; VS2019 cannot find the ".py" file.

Is there a way within VS2019 to change the "Full Path" to the new location of the file, so that VS2019 knows where to open the file?

Developer technologies | Visual Studio | Setup

1 answer

Sort by: Most helpful
  1. PengGe-MSFT 3,391 Reputation points
    2021-07-08T08:14:46.313+00:00

    Hi, @James Shaw

    Welcome to Microsoft Q&A!

    I checked the document of Visual Studio 2019, but did not find anything about this.

    If you move a python file to another folder, Visual Studio will prompt you that this file does not exist and cannot be opened. You can add this file to the project (right click project->Add->Existing item), and Visual Studio will copy this file to the project folder.

    Usually, files in a project will not be moved individually. If you need to move the project to another folder, please move the entire project folder.

    Sincerely,
    Peng
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.