Skip to content

Commit

Permalink
Support for loading config from "<(/usr/bin/envsubst < template)"
Browse files Browse the repository at this point in the history
  • Loading branch information
LucidOne committed Jul 6, 2019
1 parent 45fbf1b commit 9d7a288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/configobj/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ def _load(self, infile, configspec):

if isinstance(infile, six.string_types):
self.filename = infile
if os.path.isfile(infile):
if os.path.exists(infile):
with open(infile, 'rb') as h:
content = h.readlines() or []
elif self.file_error:
Expand Down

0 comments on commit 9d7a288

Please sign in to comment.