Skip to content

Instantly share code, notes, and snippets.

@yarko
Last active August 29, 2015 14:07
Show Gist options
  • Save yarko/d403551fb1a6e1388ed9 to your computer and use it in GitHub Desktop.
Save yarko/d403551fb1a6e1388ed9 to your computer and use it in GitHub Desktop.
Find & fix bad Symlinks in Dropbox folder
@yarko
Copy link
Author

yarko commented Oct 19, 2014

My quick, hacky script to find bad Python virtualenv symlinks, due to an upgrade of python.
(a little less hacky, now that I've cleaned it up a bit).
I run it this way on my mac:

$ find ~/Dropbox -type l -exec ls -lah {} \; | ./droplinks.py

Run it with the --dry-run option once, to first validate that yours is a virtualenv type of problem, related to python paths. Also, try droplinks.py -h.

@yarko
Copy link
Author

yarko commented Oct 19, 2014

Oh, and no guarantees if you're using python2.6 or older (although I tried to make it 2.6 compatible).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment