blob: b8865cf4f9dc429f9e7d3ccd4d0f2e81ba4c63c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env python2
# -*- coding: utf-8-*-
import os
# Jasper main directory
APP_PATH = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir))
DATA_PATH = os.path.join(APP_PATH, "static")
LIB_PATH = os.path.join(APP_PATH, "client")
PLUGIN_PATH = os.path.join(LIB_PATH, "modules")
CONFIG_PATH = os.path.expanduser(os.getenv('JASPER_CONFIG', '~/.jasper'))
def config(*fname):
return os.path.join(CONFIG_PATH, *fname)
def data(*fname):
return os.path.join(DATA_PATH, *fname)
|