Python Forum
how to save python file to working directory
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to save python file to working directory
#1
I am using Bash terminal and my working directory is /home/rpdohm. I am using IDLE to create my python script and when I save my python script (i.e. Test.py) I have no clue where to save it to because it only gives me the standard computer folders such as C:\My Documents, etc. I do not know how to find /home/rpdohm folder to save my python script. I want to run my python script from Bash using the command python3 test.py but of course it cannot find it since it is not in my working directory. I do have the shebang in the first line of python script as well.

I appreciate any help, I recently started learning Python and just in last few weeks have been working with the Bash terminal and have been stuck on this for days....
Reply


Messages In This Thread
how to save python file to working directory - by rpdohm - Sep-12-2017, 12:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Open/save file on Android frohr 0 412 Jan-24-2024, 06:28 PM
Last Post: frohr
  working directory if using windows path-variable chitarup 2 837 Nov-28-2023, 11:36 PM
Last Post: chitarup
  how to save to multiple locations during save cubangt 1 630 Oct-23-2023, 10:16 PM
Last Post: deanhystad
  change directory of save of python files akbarza 3 1,060 Jul-23-2023, 08:30 AM
Last Post: Gribouillis
  save values permanently in python (perhaps not in a text file)? flash77 8 1,362 Jul-07-2023, 05:44 PM
Last Post: flash77
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 3,796 Jun-27-2023, 01:17 PM
Last Post: diver999
  Save and Close Excel File avd88 0 3,323 Feb-20-2023, 07:19 PM
Last Post: avd88
  Extract file only (without a directory it is in) from ZIPIP tester_V 1 1,115 Jan-23-2023, 04:56 AM
Last Post: deanhystad
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,211 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  Save multiple Parts of Bytearray to File ? lastyle 1 1,018 Dec-10-2022, 08:09 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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