From f98d2ee3368586ff156013e037f4fa38c098ffae Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Thu, 7 Nov 2019 01:28:56 -0600 Subject: [PATCH] documentation --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b5bdc34..51aa555 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,14 @@ Use parse-edi within your code base as a library import edi.parser import json import os - ROOT = '/mnt/data/837' - files = os.listdir(ROOT) - file = os.sep.join([ROOT,files[0]]) - conf = json.loads(open('/mnt/data/config/837.json').read()) - info = edi.parser.get_content(file,conf) + + + ROOT = 'data' + CLAIMS_FOLDER = os.sep.join([ROOT,'837']) + CONFIG_FOLDER = os.sep.join([ROOT,'config']) + + + files = os.listdir(CLAIMS_FOLDER) + filename = os.sep.join([ROOT,files[0]]) #-- selecting the first file in the folder (it's an example) + conf = json.loads(open( os.sep.join([CONFIG_FOLDER,'837.json']) ).read()) + info = edi.parser.get_content(file,conf) #-- array of objects claims/remits