summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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