diff --git a/git-filter-repo b/git-filter-repo index 5e726c9..63c47da 100755 --- a/git-filter-repo +++ b/git-filter-repo @@ -1597,7 +1597,7 @@ class GitUtils(object): @staticmethod def print_my_version(): - with open(sys.argv[0], 'br') as f: + with open(__file__, 'br') as f: contents = f.read() # If people replaced @@LOCALEDIR@@ string to point at their local # directory, undo it so we can get original source version.