blob: f1296ee99cea3ecf163d282c5d755d53a3d50470 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import os, sys
from os.path import join, exists, isdir, isfile, dirname, abspath, expanduser
from defs import *
UNINSTALLED_LAB = False
def _check (path):
return exists(path) and isdir(path) and isfile(path+"/AUTHORS")
name = join (dirname (__file__), '..')
if _check (name):
UNINSTALLED_LAB = True
if UNINSTALLED_LAB:
SHARED_DATA_DIR = abspath(join(dirname(__file__), '..', 'data'))
else:
SHARED_DATA_DIR = join(DATA_DIR, "labyrinth")
|