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)

import os

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

os.symlink(source_path, destination_path)