File: conftest.py

package info (click to toggle)
freeorion 0.5.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 194,920 kB
  • sloc: cpp: 186,821; python: 40,979; ansic: 1,164; xml: 721; makefile: 32; sh: 7
file content (11 lines) | stat: -rw-r--r-- 277 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
import os
import sys

current_dir = os.path.dirname(__file__)
common = os.path.join(current_dir, "..", "..", "..")
assert os.path.exists(common)
sys.path.append(common)

charting = os.path.join(current_dir, "..", "..")
assert os.path.exists(charting)
sys.path.append(charting)