#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------------------------------------------- # Author : Ulrich Carmesin # Source : gitea.ucarmesin.de # --------------------------------------------------------------------------------------------------------- """ constants """ import os home = os.getcwd() prgdir = "" if home[-4:] == "test" and home[-6:] != "datest": home = home[0:-5] if home[-10:] == "components": home = home[0:-11] if home[-6:] == "datest": prgdir = home[-6:] home = home[0:-7] elif home[-7:] == "program": prgdir = home[-7:] home = home[0:-8] HOME_PATH = home DATA_PATH = os.path.join(home, "data") PROG_PATH = os.path.join(home, prgdir) COMP_PATH = os.path.join(home, prgdir, "components") OS_SYSTEM = "linux"