Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Make A Symbolic Link In Python

This is how you make a symbolic link in python. (Works on Mac and Linux. Not sure about the functionality on Windows)

Code

import os

source_path = 'some/file/path.txt'
destination_path = 'path/to/make/the/link.txt'

os.symlink(source_path, destination_path)