Python Forum
change directory of save of python files
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
change directory of save of python files
#1
hi
i save my python files in my pc in drive d at d:\pythonfiles folder.
when I want to save a new python file or I want to open a python file, windows go to the below address:
c:\users\...\appdata\local\programs\python\python311
i want to go to address d:\pythonfiles when i want to save a python file or open a one .
how can i do it?
thanks
Reply
#2
What do you mean "windows go to the below address". Are you opening a file dialog, and the dialog opens in that folder, or do files appear in that folder when you save a file without providing a path?

And how are you saving python files? What is your editor?
Reply
#3
(Jul-22-2023, 02:49 PM)deanhystad Wrote: What do you mean "windows go to the below address". Are you opening a file dialog, and the dialog opens in that folder, or do files appear in that folder when you save a file without providing a path?

And how are you saving python files? What is your editor?
hi
i use idle shell 3.11.3
suppose i open a new file in idle and i write a code in it. for runing it, i first must save it( if i do not save it, when i run it, the idle popup a window and says to save it).when i want to save it, the popup save window is opened with the address:
c:\users\...\appdata\local\programs\python\python 3.11
but i want to save my code in derive d in a folder, so i must change the address of saving files.
there is this problem in open a saved code.
it is time consuming changing address of save for several times.
so i want to know is there a way to change save address to specific folder other than : c:\users\...\appdata\local\programs\python\python 3.11
thanks
Reply
#4
I think you can use Snippsat's reply in this thread. Otherwise you can probably configure the link to idle in Windows using this tutorial (but I'm not a Windows user, things may be different nowadays).
akbarza likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Loop through all files in a directory? Winfried 10 411 Apr-23-2024, 07:38 PM
Last Post: FortuneCoins
  uploading files from a ubuntu local directory to Minio storage container dchilambo 0 469 Dec-22-2023, 07:17 AM
Last Post: dchilambo
  how to save to multiple locations during save cubangt 1 560 Oct-23-2023, 10:16 PM
Last Post: deanhystad
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 3,388 Jun-27-2023, 01:17 PM
Last Post: diver999
  does not save in other path than opened files before icode 3 917 Jun-23-2023, 07:25 PM
Last Post: snippsat
  Monitoring a Directory for new mkv and mp4 Files lastyle 3 1,654 May-07-2023, 12:33 PM
Last Post: deanhystad
  unittest generates multiple files for each of my test case, how do I change to 1 file zsousa 0 974 Feb-15-2023, 05:34 PM
Last Post: zsousa
  Read directory listing of files and parse out the highest number? cubangt 5 2,374 Sep-28-2022, 10:15 PM
Last Post: Larz60+
  How to save files in a separate directory Scordomaniac 3 1,901 Mar-16-2022, 10:17 AM
Last Post: Gribouillis
  Rename Multiple files in directory to remove special characters nyawadasi 9 6,428 Feb-16-2021, 09:49 PM
Last Post: BashBedlam

Forum Jump:

User Panel Messages

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