]> arthur.barton.de Git - bup.git/blob - lib/bup/path.py
b6167d075fd88689b45b81f1dadb2a45c7b5e1ec
[bup.git] / lib / bup / path.py
1
2 from __future__ import absolute_import
3 import os
4
5
6 # Eventually, if we physically move the source tree cmd/ to lib/, then
7 # we could use realpath here and save some stats...
8
9 _libdir = os.path.abspath(os.path.dirname(__file__) + '/..')
10 _resdir = _libdir
11 _exedir = os.path.abspath(_libdir + '/cmd')
12 _exe = os.path.join(_exedir, 'bup')
13
14
15 def exe():
16     return _exe
17
18 def exedir():
19     return _exedir
20
21 cmddir = exedir
22
23 def libdir():
24     return _libdir
25
26 def resource_path(subdir=''):
27     return os.path.join(_resdir, subdir)