Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set 'default' cwd in python
#1
I want to know how did I got my cwd?
os.getcwd()
displays
C:\Users\j\PycharmProjects\HelloWorld 
I know I can use
os.chdir()
to change it...

but I want to know why is this the default and how to make a new path that I like as default?
Reply
#2
os.getcwd is the path where program is run from.
99 percent of computer problems exists between chair and keyboard.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pip installs in a different python version and directory than the default 3.11 ao_tex_mal 9 3,077 Jun-20-2023, 02:55 PM
Last Post: snippsat
  Mac default python interpreter Viewpoint8455 2 874 Oct-13-2022, 06:25 AM
Last Post: perfringo
  set python default 3.0 tdwinfre 4 2,752 Nov-27-2020, 06:04 PM
Last Post: snippsat
  How to see python default methods from inside mariolucas75 3 2,386 Jun-14-2020, 11:41 AM
Last Post: snippsat
  How to make the python default language be 3.6 instead of 2.7 sylas 4 6,772 Jul-06-2018, 06:11 AM
Last Post: sylas

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020