bug fix: custom folders

This commit is contained in:
Steve Nyemba 2021-01-18 11:33:08 -06:00
parent b9ad861db9
commit ae0f768ec5
2 changed files with 5 additions and 5 deletions

View File

@ -44,10 +44,10 @@ STORE_URI = 'http://healthcareio.the-phi.com/store/healthcareio'
PATH = os.sep.join([os.environ.get('HOME'),'.healthcareio','custom']) PATH = os.sep.join([os.environ.get('HOME'),'.healthcareio','custom'])
CONFIG = {} CONFIG = {}
CUSTOM_CONFIG = {} CUSTOM_CONFIG = {}
if os.path.exists(PATH) and os.listdir(PATH) : # if os.path.exists(PATH) and os.listdir(PATH) :
CONFIG = json.loads((open(PATH)).read()) # CONFIG = json.loads((open(PATH)).read())
PATH = os.sep.join([PATH,os.listdir(PATH)[0]]) # PATH = os.sep.join([PATH,os.listdir(PATH)[0]])
CUSTOM_CONFIG = json.loads((open(PATH)).read()) # CUSTOM_CONFIG = json.loads((open(PATH)).read())
# _args = dict(CONFIG['store'],**{'type':'mongo.MongoReader'}) # _args = dict(CONFIG['store'],**{'type':'mongo.MongoReader'})

View File

@ -8,7 +8,7 @@ import sys
def read(fname): def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read() return open(os.path.join(os.path.dirname(__file__), fname)).read()
args = { args = {
"name":"healthcareio","version":"1.5.0", "name":"healthcareio","version":"1.5.1",
"author":"Vanderbilt University Medical Center", "author":"Vanderbilt University Medical Center",
"author_email":"steve.l.nyemba@vumc.org", "author_email":"steve.l.nyemba@vumc.org",
"include_package_data":True, "include_package_data":True,