'Put all the path pieces together and return that list.
If "cwd" is specified, it is prepended to the list. (In many languages
the directory of the file with the import statement is first on the
module search path.)'

def _getPath(self, cwd=None):

    if (self.corePath is None):
        self.setCorePath()
    if (self.envPath is None):
        self.setEnvPath()
    if (cwd is not None):
        path = [cwd]
    else:
        path = []
    if self.customPath:
        path += self.customPath
    path += self.envPath
    path += self.corePath
    return path
