Python Forum
Python "Automate the Boring Stuff" wants me to change Windows environment variables?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python "Automate the Boring Stuff" wants me to change Windows environment variables?
#7
(Dec-13-2016, 09:43 AM)Kebap Wrote: You can edit your environment only for the time being inside a command prompt, so that all edits will be undone when you close the box. This should work on your non-personal computer as well.

For example, create a new text file called "python_path.bat" and put these contents inside:

set "path=%path%;C:\main_python_location\;C:\main_python_location\scripts" 
cd "c:\my_python_files\"
cmd
You can now start the file and work with the command prompt and enlarged path variable

You should be able to run this with Windows Task Scheduler for every time you login
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
RE: Python "Automate the Boring Stuff" wants me to change Windows environment variables? - by sparkz_alot - Dec-13-2016, 02:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Installing python packages in a virtual environment Led_Zeppelin 1 798 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Understanding venv; How do I ensure my python script uses the environment every time? Calab 1 2,339 May-10-2023, 02:13 PM
Last Post: Calab
  Python development environment standenman 3 1,693 May-04-2023, 07:24 PM
Last Post: snippsat
  Python Scripting Environment jpotter0 1 1,776 Nov-19-2022, 03:07 PM
Last Post: snippsat
  How do I link the virtual environment of that project to the 3.9.2 version of python? Bryant11 1 1,406 Feb-26-2022, 11:15 AM
Last Post: Larz60+
  Setting permanent user variables in Windows coder420 2 1,449 Jan-04-2022, 10:42 AM
Last Post: Larz60+
  VS Code debugger using wrong Python environment topfox 0 2,541 Jun-09-2021, 10:01 AM
Last Post: topfox
  Run the code for some stuff it does not return me why Anldra12 3 2,890 Apr-19-2021, 02:01 PM
Last Post: Anldra12
  Virtual environment and upgrading python 3.5 to 3.9 NeilUK 4 12,231 Jan-24-2021, 01:02 PM
Last Post: snippsat
  "Automate the Boring Stuff with Python" creating a path works but only for CMD promt Milos 2 2,904 Nov-28-2020, 01:08 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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