Example #1
0
def projects():
    'Return the absolute path to the directory holding the projects'
    from config import cli
    path = cli.cfg('projects_directory',default='projects',section='main')
    if path[0] == '/': return path
    return os.path.join(cli.cwd, path)
Example #2
0
def external():
    'Return the absolute path to the directory holding the external packages'
    from config import cli
    path = cli.cfg('external_directory',default='external',section='main')
    if path[0] == '/': return path
    return os.path.join(cli.cwd, path)