From 16796ae9b229fdd17ba61da794cbccc0d6dfef00 Mon Sep 17 00:00:00 2001 From: Sophie Kirschner Date: Fri, 5 May 2017 08:29:30 -0400 Subject: [PATCH] Incorporated yaml dependency-loading improvement from dev branch --- manager.py | 7 ------- pydwarf/__init__.py | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/manager.py b/manager.py index 13d49c3..667ffc5 100644 --- a/manager.py +++ b/manager.py @@ -8,13 +8,6 @@ -import sys -import os - -basedir = os.path.dirname(os.path.abspath(__file__)) -sys.path.append(basedir) -sys.path.append(os.path.join(basedir, 'lib')) - import raws import pydwarf diff --git a/pydwarf/__init__.py b/pydwarf/__init__.py index 3c8f61c..e5dd113 100644 --- a/pydwarf/__init__.py +++ b/pydwarf/__init__.py @@ -24,6 +24,14 @@ +import sys +import os + +# Expose the packaged yaml dependency +basedir = os.path.dirname(os.path.abspath(__file__)) + '/..' +sys.path.append(basedir) +sys.path.append(os.path.join(basedir, 'lib')) + import logger import response import helpers