Skip to content

Commit

Permalink
Merge pull request #32 from bluebirch/os.path.expandvars
Browse files Browse the repository at this point in the history
Use os.path.expandvars() for paths specified in preferences
  • Loading branch information
mangecoeur committed Apr 20, 2016
2 parents a4acad6 + 79ad63f commit 11ff219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions citer.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ def refresh_caches():
paths = []
if BIBFILE_PATH is not None:
if isinstance(BIBFILE_PATH, list):
paths += BIBFILE_PATH
paths += [os.path.expandvars(path) for path in BIBFILE_PATH]
else:
paths.append(BIBFILE_PATH)
paths.append(os.path.expandvars(BIBFILE_PATH))
if _YAMLBIB_PATH is not None:
paths.append(_YAMLBIB_PATH)

Expand Down

0 comments on commit 11ff219

Please sign in to comment.