Esempio n. 1
0
def chdir(path):
    from infi.gevent_utils.os.path import abspath
    from infi.gevent_utils.os import curdir
    path = abspath(path)
    current_dir = abspath(curdir)
    _chdir_and_log(path)
    try:
        yield
    finally:
        _chdir_and_log(current_dir)
Esempio n. 2
0
def chdir(path):
    from infi.gevent_utils.os.path import abspath
    from infi.gevent_utils.os import curdir
    path = abspath(path)
    current_dir = abspath(curdir)
    _chdir_and_log(path)
    try:
        yield
    finally:
        _chdir_and_log(current_dir)
Esempio n. 3
0
def get_projectroot():
    return path.abspath(path.join(path.dirname(__file__), pardir, pardir, pardir))
Esempio n. 4
0
def get_projectroot():
    return path.abspath(path.join(path.dirname(__file__), pardir, pardir, pardir))