1
# -*- coding: utf-8 -*-
3
# This file is in the public domain
6
# THIS IS Acire CONFIGURATION FILE
7
# YOU CAN PUT THERE SOME GLOBAL VALUE
8
# Do not touch until you know what you're doing.
11
# where your project will head for your data (for instance, images and ui files)
12
# by default, this is ../data, relative your trunk layout
13
__acire_data_directory__ = '../data/'
18
class project_path_not_found(Exception):
22
"""Retrieve acire data path
24
This path is by default <acire_lib_path>/../data/ in trunk
25
and /usr/share/acire in an installed version but this path
26
is specified at installation time.
29
# get pathname absolute or relative
30
if __acire_data_directory__.startswith('/'):
31
pathname = __acire_data_directory__
33
pathname = os.path.dirname(__file__) + '/' + __acire_data_directory__
35
abs_data_path = os.path.abspath(pathname)
36
if os.path.exists(abs_data_path):
39
raise project_path_not_found