Skip to content

Commit

Permalink
Expand ~ in custom paths
Browse files Browse the repository at this point in the history
  • Loading branch information
deanishe committed Sep 3, 2019
1 parent 7dffb80 commit 3a27aa9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,7 @@ Edit the `ZOTERO_DIR` variable to point to Zotero 5's data directory if you aren
<string></string>
</dict>
<key>version</key>
<string>1.2.1</string>
<string>1.2.2</string>
<key>webaddress</key>
<string>https://github.com/deanishe/zothero</string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions src/zh
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,9 @@ def main(wf):
datadir = os.getenv('ZOTERO_DIR') or None
attachdir = os.getenv('ATTACHMENTS_DIR') or None
if datadir:
datadir = wf.decode(datadir)
datadir = wf.decode(os.path.expanduser(datadir))
if attachdir:
attachdir = wf.decode(attachdir)
attachdir = wf.decode(os.path.expanduser(attachdir))

app = zothero.ZotHero(wf.cachedir, datadir, attachdir)
# Store app in `zothero` package where everything can access it.
Expand Down

0 comments on commit 3a27aa9

Please sign in to comment.