From 0bc99fe520a349c911b51095235495ca8bc8afc8 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 22 Jan 2023 06:12:13 +0300 Subject: [PATCH] os env --- ~/Python/README.md | 3 +++ ~/Python/os_env.py | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 ~/Python/os_env.py diff --git a/~/Python/README.md b/~/Python/README.md index 7698fb8..65f6f12 100644 --- a/~/Python/README.md +++ b/~/Python/README.md @@ -1,4 +1,7 @@ # Python +## std +- [`os_env.py`](os_env.py) - Получение значений переменных окружения + ## Stuff - [`irc-bot.py`](irc-bot.py) - Простой IRC бот на Python 3 diff --git a/~/Python/os_env.py b/~/Python/os_env.py new file mode 100644 index 0000000..5981cb8 --- /dev/null +++ b/~/Python/os_env.py @@ -0,0 +1,2 @@ +import os +print(os.environ['HOME'])