File: fixpath.py

package info (click to toggle)
pygubu 0.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,768 kB
  • sloc: python: 22,345; sh: 55; makefile: 7
file content (10 lines) | stat: -rw-r--r-- 217 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
import os
import sys
import pathlib
import importlib

test_dir = pathlib.Path(sys.argv[0]).parent.resolve()
pygubu_src = str(test_dir.parent / "src")

if pygubu_src not in sys.path:
    sys.path.insert(0, pygubu_src)