OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How can I change the cwd in a python terminal?

  • Thread starter Thread starter Juan Cole
  • Start date Start date
J

Juan Cole

Guest
I've just started coding for a class and I'm trying to get used to VS Code, but I'm having some issues running a python program from the terminal. I figured out how to change the powershell terminal's cwd to the correct folder that I'm storing my projects in; however when I create a new python terminal, the cwd is not correct.

I've already changed the "Terminal > integrated Cwd" setting to the correct file directory and I've tried changing the "Python > Testing: Cwd"; but opening a new python terminal still displays the wrong Cwd.

I read that a solution to a similar issue was to edit a .JSON file for VS code; but I'm fairly certain that this is a user issue as I just don't know what I'm doing in VS Code yet. Any help would be much appreciated!

Current Cwds for Powershell and Python Terminals
<p>I've just started coding for a class and I'm trying to get used to VS Code, but I'm having some issues running a python program from the terminal. I figured out how to change the powershell terminal's cwd to the correct folder that I'm storing my projects in; however when I create a new python terminal, the cwd is not correct.</p>
<p>I've already changed the "Terminal > integrated Cwd" setting to the correct file directory and I've tried changing the "Python > Testing: Cwd"; but opening a new python terminal still displays the wrong Cwd.</p>
<p>I read that a solution to a similar issue was to edit a .JSON file for VS code; but I'm fairly certain that this is a user issue as I just don't know what I'm doing in VS Code yet. Any help would be much appreciated!</p>
<p><a href="https://i.sstatic.net/IxbEQY1W.jpg" rel="nofollow noreferrer">Current Cwds for Powershell and Python Terminals</a></p>
 
Top