def find_project_dir():
    for path in sys.path:
        abs_path = os.path.join(os.path.abspath(path), "app.yaml")
        if os.path.exists(abs_path):
            return os.path.dirname(abs_path)

    raise RuntimeError("Unable to locate app.yaml on sys.path")
Returns a staff-only URL for this ticket, used when giving a URL to
dataset/ETHPy150Open django-nonrel/djangoappengine/djangoappengine/boot.py/find_project_dir--crossover with--dataset/ETHPy150Open rossp/django-helpdesk/helpdesk/models.py/Ticket._get_staff_url