Package qb :: Package backend :: Module appDefaultPaths
[hide private]
[frames] | no frames]

Module appDefaultPaths

source code

Classes [hide private]
  AppVersionNotFoundError
Functions [hide private]
str
buildAppPath(appToken, appVerTuple)
Determine a good guess at where an app will be for a particular OS and word-size
source code
str
appName(appToken)
Return a human-readable name for an appToken, one of the keys in installPath
source code
str
appVerAsStr(appVer)
Return an arbitrary-length tuple of integers as a dotted string
source code
Variables [hide private]
  installPath = {'AE': {'Darwin': ['/Applications/Adobe After Ef...
  __package__ = 'qb.backend'
Function Details [hide private]

buildAppPath(appToken, appVerTuple)

source code 

Determine a good guess at where an app will be for a particular OS and word-size

Parameters:
  • appToken (str) - An all-caps short name for the application, must be a key in the installPath dictionary.
  • appVerTuple (tuple) - A tuple containing the application version components, the last value may be an optional architecture; x86 or x64
Returns: str
Return the path to the specified version and app on the local worker
Raises:

appName(appToken)

source code 

Return a human-readable name for an appToken, one of the keys in installPath

Parameters:
  • appToken (str) - the all-caps application name token that's present in the submitted command; eg: "AE", "C4D", "MAYA"
Returns: str
a human-readable application name

appVerAsStr(appVer)

source code 

Return an arbitrary-length tuple of integers as a dotted string

Parameters:
  • appVer ({tuple}) - A tuple of integers
Returns: str
a version number as a dotted string

Variables Details [hide private]

installPath

Value:
{'AE': {'Darwin': ['/Applications/Adobe After Effects %(v1)s/aerender'\
,
                   '/Applications/Adobe After Effects %(v1)s %(v2)s/ae\
render',
                   '/Applications/Adobe After Effects CS%(v1)s/aerende\
r',
                   '/Applications/Adobe After Effects CS%(v1)s.%(v2)s/\
aerender'],
...