summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-26 14:59:20 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-26 14:59:20 +0100
commit93acc1394f9ad7107a9ef8eb4d5f167f058b08d2 (patch)
treeebbc995124e5d3d0c01dce82e76f1c8655aa77a3
parent0c565dad330311882c04aba9de007b7d6e4d5128 (diff)
downloadlorry-93acc1394f9ad7107a9ef8eb4d5f167f058b08d2.tar.gz
Resolve the real path to lorry to improve tar importer behaviour
-rwxr-xr-xlorry4
1 files changed, 3 insertions, 1 deletions
diff --git a/lorry b/lorry
index 6dfc27b..b52a193 100755
--- a/lorry
+++ b/lorry
@@ -28,6 +28,8 @@ import traceback
__version__ = '0.0'
+lorry_path = os.path.realpath(__file__)
+
def quote_url(url):
''' Convert URIs to strings that only contain digits, letters, % and _.
@@ -426,7 +428,7 @@ class Lorry(cliapp.Application):
return
if not os.path.exists(gitdir):
self.run_program(['git', 'init', '--bare', gitdir])
- cmdline = ["%s.tar-importer" % __file__, tardest]
+ cmdline = ["%s.tar-importer" % lorry_path, tardest]
self.run_program(cmdline, cwd=gitdir)
self.needs_aggressive = True