We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5f43c8 commit fc7387aCopy full SHA for fc7387a
gitlab/config.py
@@ -19,6 +19,7 @@
19
import configparser
20
import subprocess
21
from typing import List, Optional, Union
22
+from os.path import expanduser
23
24
from gitlab.const import USER_AGENT
25
@@ -205,6 +206,6 @@ def _get_values_from_helper(self):
205
206
value = getattr(self, attr)
207
_value_lower = value.lower().strip()
208
if isinstance(value, str) and _value_lower.startswith(HELPER_PREFIX):
- helper = value[len(HELPER_PREFIX) :].strip()
209
+ helper = expanduser(value[len(HELPER_PREFIX) :].strip())
210
value = subprocess.check_output([helper]).decode("utf-8").strip()
211
setattr(self, attr, value)
0 commit comments