MCPcopy Create free account
hub / github.com/cztomczak/cefpython / read_file

Function read_file

tools/automate-git.py:334–342  ·  view source on GitHub ↗

Read a file.

(path)

Source from the content-addressed store, hash-verified

332
333
334def read_file(path):
335 """ Read a file. """
336 if os.path.exists(path):
337 fp = open(path, 'r')
338 data = fp.read()
339 fp.close()
340 return data
341 else:
342 raise Exception("Path does not exist: %s" % (path))
343
344
345def read_config_file(path):

Callers 2

read_config_fileFunction · 0.85
automate-git.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected