S
S
SilverDrakon2019-08-13 19:11:34
PyCharm
SilverDrakon, 2019-08-13 19:11:34

PyCharm - how to make sure that the script settings do not disappear?

1. There is a script, say, c:\work\script.py, created initially in notepad.
2. I right-click on it, choose - open in PyCharm
3. It opens, but:
a) the settings are empty (this is understandable)
b) c:\TEMP\script.py is written at the top in the header (this is not clear, I opened it from c:\work\)
4. At the top right, click Add Configuration..., at the top left on "+", add Python, write Script path (full path to the script file), script launch options, Python interpreter (path to python), working directory (path to the folder where the script is located).
5. Developing and testing the script
6. Saving the script, closing PyCharm
...
7. After a while, in the c:\work\ folder, I right-click on the script.py script and select "Open in PyCharm".
8. I got into a situation at step 3. There are no settings that I made earlier for this script, and at the top again the path c: \ TEMP
\ Did you have to reset all the settings every time you start it up?
PS if you just open PyCharm - it offers a list of files that it previously worked with, but it says c:\TEMP\script.py. Why c:\TEMP\, I worked with a script from c:\work\ ? And, if I try to click on it in this list - it says that there is no such file, let's remove it from the list?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2019-08-13
@SilverDrakon

We need to create a project. All those settings are not script settings. These are the project settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question