Symlinks on windows?

后端 未结 10 1578
轻奢々
轻奢々 2020-11-29 01:09

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

10条回答
  •  猫巷女王i
    2020-11-29 01:49

    Using mklink command in subprocess create link.

    from subprocess import call
    call(['mklink', 'LINK', 'TARGET'], shell=True)
    

提交回复
热议问题