Python Forum
os.environ not setting current shell variables in Windows?
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
os.environ not setting current shell variables in Windows?
#3
Thanks, I'll look through those responses again to see if I missed anything, I suspect I'm going to have to resort to spawning multiple cmd processes to try and force the inheritance, as the straight use of os.environ is not setting the current environment.
Reply


Messages In This Thread
RE: os.environ not setting current shell variables in Windows? - by brian6667 - Apr-26-2017, 12:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to find out from outside Python (in Windows) the current version of Python? pstein 5 994 Jun-28-2024, 07:02 AM
Last Post: Samuel34
  batch file for running python scipt in Windows shell MaartenRo 2 2,096 Jan-21-2022, 02:36 PM
Last Post: MaartenRo
  Setting permanent user variables in Windows coder420 2 1,525 Jan-04-2022, 10:42 AM
Last Post: Larz60+
  Key Error: os.environ["HOME"] Anldra12 12 16,980 Jun-18-2021, 04:11 PM
Last Post: Axel_Erfurt
  Help Setting Multiple Variables bzowk 0 1,695 Jul-18-2020, 06:59 PM
Last Post: bzowk
  How to use subprocess send commands to windows shell hlhp 3 4,612 Nov-26-2019, 04:40 AM
Last Post: LeanbridgeTech
  Setting DCHP in Windows 10 with Python Martin2998 4 3,797 Dec-07-2018, 10:15 PM
Last Post: Martin2998
  setting pythonpath variable in environment variables saisankalpj 3 3,610 Dec-05-2018, 10:33 PM
Last Post: Gribouillis
  Looping through variables and setting them ColdDeath 7 4,196 Dec-17-2017, 02:48 PM
Last Post: ColdDeath
  SOLVED: best way to block (wait on) shell calls to multiple windows programs at once? ezdev 0 2,696 Dec-10-2017, 06:42 AM
Last Post: ezdev

Forum Jump:

User Panel Messages

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