diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-26 14:59:20 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-26 14:59:20 +0100 |
commit | 93acc1394f9ad7107a9ef8eb4d5f167f058b08d2 (patch) | |
tree | ebbc995124e5d3d0c01dce82e76f1c8655aa77a3 | |
parent | 0c565dad330311882c04aba9de007b7d6e4d5128 (diff) | |
download | lorry-93acc1394f9ad7107a9ef8eb4d5f167f058b08d2.tar.gz |
Resolve the real path to lorry to improve tar importer behaviour
-rwxr-xr-x | lorry | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |