You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been playing around with pyscript (which is awesome). One thing Im trying to do is to try read environment vars and work with them directly.
Seems i cant quite do anything of that cause of the userspacing going on with pyodide under the hood i suspect (im quite new to this side of things)
Is there any other way to access the underlying OS env vars? say using .env (python-dotenv)
when I try to simple print the contents of os.environ() I get
environ({'USER': 'web_user', 'LOGNAME': 'web_user', 'PATH': '/', 'PWD': '/', 'HOME': '/home/pyodide', 'LANG': 'en_US.UTF-8', '_': './this.program', 'LD_LIBRARY_PATH': '/usr/lib:/lib/python3.11/site-packages'})
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been playing around with pyscript (which is awesome). One thing Im trying to do is to try read environment vars and work with them directly.
Seems i cant quite do anything of that cause of the userspacing going on with pyodide under the hood i suspect (im quite new to this side of things)
Is there any other way to access the underlying OS env vars? say using .env (python-dotenv)
when I try to simple print the contents of os.environ() I get
environ({'USER': 'web_user', 'LOGNAME': 'web_user', 'PATH': '/', 'PWD': '/', 'HOME': '/home/pyodide', 'LANG': 'en_US.UTF-8', '_': './this.program', 'LD_LIBRARY_PATH': '/usr/lib:/lib/python3.11/site-packages'})
Beta Was this translation helpful? Give feedback.
All reactions