lundi 20 avril 2015

Python change Windows Path (refresh Shell)

i have a Python script here and it is called from the Windows CMD. It is executing some commands and also changing the Windows environment variables. Now after i changed them with the command "setx". I have to restart another Shell so the new variables are loaded into it.

Is it possible that the main shell from which i called my script can update the variables itself ?

Or is it possible to start another shell with the new variables and the script will continue in the new opened shell ?

Thanks

Aucun commentaire:

Enregistrer un commentaire