From 93acc1394f9ad7107a9ef8eb4d5f167f058b08d2 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Wed, 26 Sep 2012 14:59:20 +0100 Subject: Resolve the real path to lorry to improve tar importer behaviour --- lorry | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1