Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2023-09-23 18:18:10 +0300
committerwurstsalat <mailtrash@posteo.de>2023-09-23 18:18:10 +0300
commitfed5a7fae07745016136f0fb9a1e3620ec486fa5 (patch)
tree4fd578de96134824c84a8a26eda35386e856b708 /launch.py
parent43f1ac2ca366facc93e870cb7b8a7bd03b4a0fe4 (diff)
cfix: Use pathlib for git rev-parse
Diffstat (limited to 'launch.py')
-rwxr-xr-xlaunch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/launch.py b/launch.py
index d7e921782..c65c93229 100755
--- a/launch.py
+++ b/launch.py
@@ -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'])