Skip to content

Commit 7b59489

Browse files
committed
[IMP] util.split_osenv
Allow to specify the default value Part-of: #158 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent c47b904 commit 7b59489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/misc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def expand_braces(s):
156156
return [head + x + tail for x in matches.split(",")]
157157

158158

159-
def split_osenv(name):
160-
return re.split(r"\W+", os.getenv(name, "").strip())
159+
def split_osenv(name, default=""):
160+
return re.split(r"\W+", os.getenv(name, default).strip())
161161

162162

163163
try:

0 commit comments

Comments
 (0)