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

Function getContext

Lib/pagebot/__init__.py:31–43  ·  view source on GitHub ↗

Returns a single context.

(contextType=None, resourcesPath=None)

Source from the content-addressed store, hash-verified

29contextTypesOSX = ('drawbot',)
30
31def getContext(contextType=None, resourcesPath=None):
32 """Returns a single context."""
33
34 # Sets the default for both supported platforms.
35 if contextType is None:
36 if platform == 'linux':
37 contextType = 'flat'
38 elif platform == 'darwin':
39 contextType = 'drawbot'
40 else:
41 raise NotImplementedError
42
43 return getPlatformContext(contextType=contextType)
44
45def getContexts(types):
46 """Returns multiple contexts, contextTypes should be specified as a

Callers 2

__init__Method · 0.90
newViewMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected