getpelican / pelican

Static site generator that supports Markdown and reST syntax. Powered by Python.
https://getpelican.com
GNU Affero General Public License v3.0
12.58k stars 1.81k forks source link

Symlinking theme folder without full path creates faulty symlink #1744

Closed jonathan-s closed 6 years ago

jonathan-s commented 9 years ago

If you symlink your theme folder like this pelican-themes -s real/path rather than using the full path. Real path will exist because os.path.exists('real/path') returns true, it will then go ahead and create a symlink but the symlink won't lead to anywhere.

Moreover, if you try to remove this link with pelican-themes -c it won't be removed as there are "no broken links".

leotrs commented 8 years ago

I was able to replicate this on pelican 3.6.3. @jonathan-s is this something you would like to help us with? PRs are welcome.

justinmayer commented 6 years ago

Closing due to inactivity. Please feel free to comment here if you feel the issue should be re-opened.