← 返回首页
fix: let the homedir be expanded in path of helper · python-gitlab/python-gitlab@fc7387a · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Commit fc7387a

Browse files
committed
fix: let the homedir be expanded in path of helper
1 parent b5f43c8 commit fc7387a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎gitlab/config.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import configparser
2020
import subprocess
2121
from typing import List, Optional, Union
22+
from os.path import expanduser
2223

2324
from gitlab.const import USER_AGENT
2425

@@ -205,6 +206,6 @@ def _get_values_from_helper(self):
205206
value = getattr(self, attr)
206207
_value_lower = value.lower().strip()
207208
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())
209210
value = subprocess.check_output([helper]).decode("utf-8").strip()
210211
setattr(self, attr, value)

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.