diff options
author | wurstsalat <mailtrash@posteo.de> | 2023-09-23 18:18:10 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2023-09-23 18:18:10 +0300 |
commit | fed5a7fae07745016136f0fb9a1e3620ec486fa5 (patch) | |
tree | 4fd578de96134824c84a8a26eda35386e856b708 /launch.py | |
parent | 43f1ac2ca366facc93e870cb7b8a7bd03b4a0fe4 (diff) |
cfix: Use pathlib for git rev-parse
Diffstat (limited to 'launch.py')
-rwxr-xr-x | launch.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 -import os import subprocess +from pathlib import Path import gajim import gajim.main @@ -10,7 +10,7 @@ try: res = subprocess.check_output( ['git', '-C', - f'{os.path.dirname(__file__)}', + f'{Path(__file__).parent}', 'rev-parse', '--short=12', 'HEAD']) |