2 from __future__ import absolute_import
5 # Eventually, if we physically move the source tree cmd/ to lib/, then
6 # we could use realpath here and save some stats...
8 fsencode = os.fsencode if sys.version_info[0] >= 3 else lambda x: x
10 _libdir = os.path.abspath(os.path.dirname(fsencode(__file__)) + b'/..')
12 _exedir = os.path.abspath(_libdir + b'/cmd')
13 _exe = os.path.join(_exedir, b'bup')
27 def resource_path(subdir=b''):
28 return os.path.join(_resdir, subdir)