]> arthur.barton.de Git - bup.git/blob - lib/bup/path.py
Simplify bup startup process
[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 _exedir = os.path.abspath(_libdir + '/cmd')
11 _exe = os.path.join(_exedir, 'bup')
12
13
14 def exe():
15     return _exe
16
17 def exedir():
18     return _exedir
19
20 cmddir = exedir
21
22 def libdir():
23     return _libdir