how to save python file to working directory - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: how to save python file to working directory (/thread-4873.html) |
how to save python file to working directory - rpdohm - Sep-12-2017 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.... RE: how to save python file to working directory - metulburr - Sep-12-2017 IDLE is by far the worst IDE for anything. If you use the terminal, then you might know the benefits of terminal over a GUI IDE? You can use any IDE not just IDLE. I use just Vim and execute the script on the terminal split by Tmux. Quote: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.Personally i would get a different IDE or just use a text editor. I would recommend the IDE Geany. Like a lot of IDE/text editors , Geany has an embedded terminal in it you can run the script from. RE: how to save python file to working directory - Larz60+ - Sep-12-2017 Here's a comparative list of python IDE's. This is usually a personal choice, so I'd try a few (bunch) until I find the one I like best. https://wiki.python.org/moin/IntegratedDevelopmentEnvironments Don't pay attention to the updated column (it's rarely updated ) for instance it shows PyCharm's last update as 2014. But it's updated on a regular basis. RE: how to save python file to working directory - rpdohm - Sep-14-2017 I appreciate it guys, I will take a look at some other IDE's and let you know how I make out. Cheers, Ryan |