首页 > 解决方案 > How to symlink with password in python?

问题描述

I use python on macos. I want to create a symlink using os.symlink() , it works on regular directory but i want to link or mount folders into my /Volumes/ which need password. In terminal i have to do symlink using 'sudo' command.

How to do it in python ? What is the best mechanism to pass the password when i call os.symlink() ?

标签: pythonmacossudosymlink

解决方案


推荐阅读