Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfc7387a

Browse files
committed
fix: let the homedir be expanded in path of helper
1 parentb5f43c8 commitfc7387a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎gitlab/config.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
importconfigparser
2020
importsubprocess
2121
fromtypingimportList,Optional,Union
22+
fromos.pathimportexpanduser
2223

2324
fromgitlab.constimportUSER_AGENT
2425

@@ -205,6 +206,6 @@ def _get_values_from_helper(self):
205206
value=getattr(self,attr)
206207
_value_lower=value.lower().strip()
207208
ifisinstance(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)

[8]ページ先頭

©2009-2025 Movatter.jp