OrgTangle / org-babel-tangle.py

The same, much faster.
23 stars 5 forks source link

Assumes files to be tangled to to be in a subdirectory #1

Closed heikkil closed 6 years ago

heikkil commented 6 years ago

The first quick test of the script gave this error:

org-babel-tangle.py dotfiles.txt master Traceback (most recent call last): File "/Users/heikki/bin/org-babel-tangle.py", line 82, in <module> dest = match_begin(line) File "/Users/heikki/bin/org-babel-tangle.py", line 38, in match_begin fo = open(dest, 'w') FileNotFoundError: [Errno 2] No such file or directory: '/Users/heikki/Dropbox/dotfiles/~/.config/fish/config.fish'

The legal '~' is not recognised and pwd added to the path.

thblt commented 6 years ago

I just pushed a commit that should fix your issue. It won't automatically create target directories (I don't know if Org does), but will correctly handle ~ in paths.