From 44af66bf6710e95de1d4021159c44457f011fb09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=B1=D9=88=D8=AC=D8=B1?= <104784913+rogerpq@users.noreply.github.com> Date: Tue, 31 Oct 2023 19:41:19 +0300 Subject: [PATCH] Add files via upload --- repthon/Config/Readme.md | 2 ++ repthon/Config/__init__.py | 1 + repthon/Config/zedub_config.py | 10 ++++++++++ repthon/Config/zss.txt | 1 + 4 files changed, 14 insertions(+) create mode 100644 repthon/Config/Readme.md create mode 100644 repthon/Config/__init__.py create mode 100644 repthon/Config/zedub_config.py create mode 100644 repthon/Config/zss.txt diff --git a/repthon/Config/Readme.md b/repthon/Config/Readme.md new file mode 100644 index 0000000..b1e405e --- /dev/null +++ b/repthon/Config/Readme.md @@ -0,0 +1,2 @@ +# Config +Config vars will be loaded from here diff --git a/repthon/Config/__init__.py b/repthon/Config/__init__.py new file mode 100644 index 0000000..8d9582c --- /dev/null +++ b/repthon/Config/__init__.py @@ -0,0 +1 @@ +from .zedub_config import Config diff --git a/repthon/Config/zedub_config.py b/repthon/Config/zedub_config.py new file mode 100644 index 0000000..e95b13f --- /dev/null +++ b/repthon/Config/zedub_config.py @@ -0,0 +1,10 @@ +# config values will be loaded from here + +import os + +ENV = bool(os.environ.get("ENV", False)) + +if ENV: + from sample_config import Config # noqa +elif os.path.exists("config.py"): + from config import Development as Config # noqa diff --git a/repthon/Config/zss.txt b/repthon/Config/zss.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/repthon/Config/zss.txt @@ -0,0 +1 @@ +