@@ -19,6 +19,7 @@ | |||
| 19 | 19 | import configparser | |
| 20 | 20 | import subprocess | |
| 21 | 21 | from typing import List, Optional, Union | |
| 22 | + from os.path import expanduser | ||
| 22 | 23 | ||
| 23 | 24 | from gitlab.const import USER_AGENT | |
| 24 | 25 | ||
@@ -205,6 +206,6 @@ def _get_values_from_helper(self): | |||
| 205 | 206 | value = getattr(self, attr) | |
| 206 | 207 | _value_lower = value.lower().strip() | |
| 207 | 208 | if isinstance(value, str) and _value_lower.startswith(HELPER_PREFIX): | |
| 208 | - helper = value[len(HELPER_PREFIX) :].strip() | ||
| 209 | + helper = expanduser(value[len(HELPER_PREFIX) :].strip()) | ||
| 209 | 210 | value = subprocess.check_output([helper]).decode("utf-8").strip() | |
| 210 | 211 | setattr(self, attr, value) | |
0 commit comments