1 """
2 Introduction
3 ============
4 Conduit is a synchronization solution for GNOME which allows the user to
5 take their emails, files, bookmarks, and any other type of personal
6 information and synchronize that data with another computer, an online
7 service, or even another electronic device.
8
9 Conduit manages the synchronization and conversion of data into other formats.
10 For example, conduit allows you to;
11
12 1. Synchronize your tomboy notes to a file on a remote computer
13 2. Synchronize your emails to your mobile phone
14 3. Synchronize your bookmarks to delicious, gmail, or even your own webserver
15 4. and many more...
16
17 Any combination you can imagine, Conduit will take care of the conversion
18 and synchronization.
19
20 Copyright: John Stowers, 2006
21 License: GPLv2
22 """
23 import os
24 import gobject
25 import sys
26 gobject.threads_init()
27
28
29
30
31 DIRECTORY = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
32 IS_INSTALLED = not os.path.exists(os.path.join(DIRECTORY,"ChangeLog"))
33 IS_DEVELOPMENT_VERSION = True
34
35
36 USER_DIR = os.path.join(
37 os.environ.get(
38 "XDG_CONFIG_HOME",
39 os.path.join(os.environ['HOME'], ".config")),
40 "conduit"
41 )
42 if not os.path.exists(USER_DIR):
43 os.makedirs(USER_DIR)
44
45 if IS_INSTALLED:
46 from defs import *
47 if not PYTHONDIR in sys.path:
48 sys.path.insert(0, PYTHONDIR)
49 else:
50 VERSION = "0.3.13"
51 LOCALE_DIR = os.path.join(DIRECTORY, "po")
52 SHARED_DATA_DIR = os.path.join(DIRECTORY, "data")
53 GLADE_FILE = os.path.join(DIRECTORY, "data","conduit.glade")
54 SHARED_MODULE_DIR = os.path.join(DIRECTORY, "conduit", "modules")
55 SETTINGS_IMPL = "GConf"
56
57 import Globals
58 GLOBALS = Globals.Globals()
59