Differences
This shows you the differences between two versions of the page.
— |
python_wiki:os_env_variables [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== OS ENV Variables ====== | ||
+ | |||
+ | **General Information** | ||
+ | |||
+ | Using OS environmental variables. | ||
+ | |||
+ | **Checklist** | ||
+ | * Import the " | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== The Code ====== | ||
+ | |||
+ | <code python> | ||
+ | # | ||
+ | |||
+ | import os | ||
+ | |||
+ | user_home=os.environ.get(' | ||
+ | |||
+ | print "Home is: " + user_home | ||
+ | </ | ||
+ | |||
+ | ---- | ||