]> arthur.barton.de Git - bup.git/blob - lib/bup/path.py
get: adjust for python 3 and test there
[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__.encode('iso-8859-1')) + b'/..')
10 _resdir = _libdir
11 _exedir = os.path.abspath(_libdir + b'/cmd')
12 _exe = os.path.join(_exedir, b'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=b''):
27     return os.path.join(_resdir, subdir)