forked from sayanarijit/expandvars
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sayanarijit:master' into master
- Loading branch information
Showing
6 changed files
with
132 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
__email__ = "[email protected]" | ||
__homepage__ = "https://github.com/sayanarijit/expandvars" | ||
__description__ = "Expand system variables Unix style" | ||
__version__ = "v0.6.5" # Also update pyproject.toml | ||
__version__ = "v0.7.0" # Also update pyproject.toml | ||
__license__ = "MIT" | ||
__all__ = [ | ||
"BadSubstitution", | ||
|
@@ -392,7 +392,7 @@ def expand_default(var, vars_, set_, nounset, indirect, environ, var_symbol): | |
for c in vars_: | ||
if c == "}": | ||
n = len(default) + 1 | ||
default_ = "".join(default) | ||
default_ = expand("".join(default)) | ||
if set_ and var not in environ: | ||
environ.update({var: default_}) | ||
return getenv( | ||
|
Oops, something went wrong.