Does anyone know of a way to make/read symbolic links across versions of win32 from Python? Ideally there should be a minimum amount of platform specific code, as I need my
As mentioned in another answer, using subprocess.call is likely the best option for windows. However calling 'mklink' directly may result in:
[WinError 2] The system cannot find the file specified
On Windows Server 2016, I was able to get the following to work for files:
import subprocess
subprocess.call(['cmd', '/c', 'mklink', '', ''])
Change the switches above as per mklink docs.