Skip to content

Commit

Permalink
use globals() instead of locals()
Browse files Browse the repository at this point in the history
DanielJDufour committed May 14, 2021
1 parent 30373fd commit 5750d03
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
rm -fr dist

# make sure libraries used for publishing are up to date
python3 -m pip install --user --upgrade setuptools wheel twine
python3 -m pip install --user --upgrade pip setuptools wheel twine
python3 -m pip install --upgrade twine

python3 setup.py sdist
2 changes: 1 addition & 1 deletion djenv/settings.py
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
if ((v.startswith("{") and v.endswith("}")) or (v.startswith("[") and v.endswith("]"))):
v = json.loads(v)

locals()[k.replace("DJANGO_", "")] = v
globals()[k.replace("DJANGO_", "")] = v

del k
del json
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
packages = ['djenv'],
package_dir = {'djenv': 'djenv'},
package_data = {'djenv': ['__init__.py']},
version = '0.0.1',
version = '0.0.2',
description = 'DjEnv (Django + Environment): Load Django Settings from Environmental Variables',
long_description = long_description,
long_description_content_type='text/markdown',

0 comments on commit 5750d03

Please sign in to comment.