Function
parseFile
(filename, envin, envout = {})
Source from the content-addressed store, hash-verified
| 2 | from os import dirname |
| 3 | |
| 4 | def parseFile(filename, envin, envout = {}): |
| 5 | exec "from sys import path" in envin |
| 6 | exec "path.append(\"" + dirname(filename) + "\")" in envin |
| 7 | envin.pop("path") |
| 8 | lines = open(filename, 'r').read() |
| 9 | exec lines in envin |
| 10 | returndict = {} |
| 11 | for key in envout: |
| 12 | returndict[key] = envin[key] |
| 13 | return returndict |
Callers
nothing calls this directly
Tested by
no test coverage detected