MCPcopy Create free account
hub / github.com/PageBot/PageBot / getResourcesPath

Function getResourcesPath

Lib/pagebot/filepaths.py:39–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 return ROOT_PATH
38
39def getResourcesPath():
40 # First check inside PageBot package.
41 path = '%s/%s' % (ROOT_PATH, 'resources')
42
43 if os.path.exists(path):
44 return path
45
46 # Check base in case of separate resources folder (Py2app).
47 path = '%s/%s' % (BASE_PATH, 'resources')
48 return path
49
50def getExportPath():
51 if os.path.exists(ROOT_PATH):

Callers 5

hyphenatedWordsFunction · 0.90
__init__Method · 0.90
getTestFontsPathFunction · 0.90
drawColorBarsMethod · 0.90
drawColorBarsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected