[Python-de] os.symlink unter Windows?

Ulli Horlacher <[email protected]>
Newsgroups gmane.comp.python.general.german
Organization University of Stuttgart, FRG
Message-ID <[email protected]>
Unter Linux laeuft mein Programm, unter Windows bekomme ich:

Traceback (most recent call last):
  File "P:\fextasy.py", line 631, in <module>
    main()
  File "P:\fextasy.py", line 96, in main
    if not path.exists(fddir): symlink(ddir,fddir)
OSError: [WinError 1314] A required privilege is not held by the client: 'C:\\Users\\admin\\Downloads\\fex' -> 'C:\\Users\\admin\\fex\\Downloads'


Ich hab weiter oben gesetzt:

from os import symlink


Auf https://docs.python.org/3/library/os.html steht:

On newer versions of Windows 10, unprivileged accounts can create symlinks
if Developer Mode is enabled. When Developer Mode is not
available/enabled, the SeCreateSymbolicLinkPrivilege privilege is
required, or the process must be run as an administrator.
OSError is raised when the function is called by an unprivileged user.

Das duerfte das Problem sein :-}

Meine User haben aber kein SeCreateSymbolicLinkPrivilege und bekommen das
auch nicht.

Gibt es da irgendeinen Workaround?


-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: [email protected]
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
_______________________________________________
python-de Mailingliste -- [email protected]
Zur Abmeldung von dieser Mailingliste senden Sie eine Nachricht an [email protected]
https://mail.python.org/mailman3/lists/python-de.python.org/
Mitgliedsadresse: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.