File: project_root.py

package info (click to toggle)
trash-cli 0.24.5.26-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,972 kB
  • sloc: python: 9,789; sh: 121; makefile: 11
file content (8 lines) | stat: -rw-r--r-- 203 bytes parent folder | download
1
2
3
4
5
6
7
8
import os


def project_root():
    this_file = os.path.realpath(__file__)
    support_dir = os.path.dirname(this_file)
    tests_dir = os.path.dirname(support_dir)
    return os.path.dirname(tests_dir)