Skip to content

Commit 149a1d4

Browse files
Ability to add path to config
1 parent 42e8170 commit 149a1d4

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [1.1.0] - 2016-02-25
6+
### Fixed
7+
- Config paths
8+
59
## [1.0.2] - 2016-02-25
610
### Fixed
711
- Config paths

python_http_client/config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ class Config(object):
55
"""Allow variables assigned in .env available using
66
os.environ.get('VAR_NAME')"""
77
def __init__(self, base_path=None):
8-
if base_path:
8+
if base_path == "test":
99
base_path = os.path.join(os.path.dirname(__file__), os.pardir)
10+
elif base_path:
11+
base_path = base_path
1012
else:
11-
base_path = os.path.abspath(os.path.dirname(__file__))
13+
base_path = os.path.join(os.path.dirname(__file__), os.pardir)
1214
if os.path.exists(base_path + '/.env'):
1315
file = open(base_path + '/.env')
1416
for line in file:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def getRequires():
99
return deps
1010

1111
base_url = 'https://github.com/sendgrid/'
12-
version = '1.0.2'
12+
version = '1.1.0'
1313
setup(
1414
name='python_http_client',
1515
version=version,

0 commit comments

Comments
 (0)