# Eventually, if we physically move the source tree cmd/ to lib/, then
# we could use realpath here and save some stats...
-_libdir = os.path.abspath(os.path.dirname(__file__) + '/..')
-_exedir = os.path.abspath(_libdir + '/cmd')
-_exe = os.path.join(_exedir, 'bup')
+_libdir = os.path.abspath(os.path.dirname(__file__.encode('iso-8859-1')) + b'/..')
+_resdir = _libdir
+_exedir = os.path.abspath(_libdir + b'/cmd')
+_exe = os.path.join(_exedir, b'bup')
def exe():
def libdir():
return _libdir
+
+def resource_path(subdir=b''):
+ return os.path.join(_resdir, subdir)