FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/cefpython/var/envpath_broadcast.py at cefpython31 · 2php/cefpython · GitHub
2php
cefpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
cefpython
/
var
/
envpath_broadcast.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
6 lines (5 loc) · 313 Bytes
Breadcrumbs
cefpython
/
cefpython
/
var
/
envpath_broadcast.py
Copy path
File metadata and controls
6 lines (5 loc) · 313 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
import
win32api
import
win32con
# http://stackoverflow.com/questions/531998/is-there-a-way-to-set-the-environment-path-programatically-in-c-on-windows
win32api
.
SendMessage
(
win32con
.
HWND_BROADCAST
,
win32con
.
WM_SETTINGCHANGE
,
0
,
"Environment"
)
print
(
"WM_SETTINGCHANGE
\"
Environment
\"
broadcasted to all windows."
)
Back
|
FazBrowse Home
|
New Git URL