Ver Fonte

documentation, code comment

Steve Nyemba há 5 anos atrás
pai
commit
de9c8bc2e3
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -40,11 +40,11 @@ Use parse-edi within your code base as a library
 
 
     ROOT = 'data'
-    CLAIMS_FOLDER = os.sep.join([ROOT,'837'])
-    CONFIG_FOLDER = os.sep.join([ROOT,'config'])
+    CLAIMS_FOLDER = os.sep.join([ROOT,'837'])   #-- data/837    contains all 837 formatted files
+    CONFIG_FOLDER = os.sep.join([ROOT,'config'])#-- data/config contains 837.json or 835.json
     
     
     files       = os.listdir(CLAIMS_FOLDER)
-    filename    = os.sep.join([ROOT,files[0]]) #-- selecting the first file in the folder (it's an example)
+    filename    = os.sep.join([CLAIM_FOLDER,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