Click here to Skip to main content
16,018,904 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I don't have enough authority to open the environment variable, much less to set it.

The computer already installed the python and notepad++, and I know the path of python, like C://program files/python3.8. I cannot use 'python' in cmd to open the python but I can run python.exe in that path.

So how to set the RUN in notepad++ for me?

I only know "cmd /k cd /d "$(CURRENT_DIRECTORY)" & python "$(FILE_NAME)" & ECHO. & PAUSE & EXIT" when I have directly environment variable.

What I have tried:

I cannot find any helpful file in google
Posted
Updated 13-Aug-19 21:41pm
Comments
[no name] 13-Aug-19 21:47pm    
What does one have to do with the other? Sounds like your inventing your own installation.

https://www.pythonlearn.com/html-008/cfbook018.html
Afzaal Ahmad Zeeshan 14-Aug-19 3:36am    
And the problem is?

Why can't you consider using some better options for IDE? Like Visual Studio Code, that can provide all these features built-in?
s441764347 14-Aug-19 21:20pm    
Thanks to the company safety measures, I cannot install other IDE
Afzaal Ahmad Zeeshan 14-Aug-19 23:02pm    
But you can always request them to provide an IDE, and if they don't consider ease for developers, I recommend finding a better company.

1 solution

Quote:
I don't have enough authority to open the environment variable, much less to set it.
Is this even your own machine? Are you using school/college/university machines to do this, or even a corporate machine? If so, you should ask your system admin to add the variables to your machine so that you can work properly.
Quote:
The computer already installed the python and notepad++, and I know the path of python, like C://program files/python3.8
Then you can use the path and execute the Python binary, like this,
Python
# Might want to add quotation around Program Files
cmd> C:\Program Files\Python3.8\python.exe mypython.py
This will execute that Python file for you. You can store this as a Windows Batch file (.bat) and run it each time you want to execute the file.

I would again recommend, that you ask system administrator to do this for you. And yes, consider using an IDE when you can, Python in Visual Studio Code[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900