home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Make A Symbolic Link In Python

October 2021

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)
═══ § ═══