我正在尝试连接VxWorks上的扭曲端口。但是它不支持symlink。这意味着我有一个ImportError: cannot import name symlink。
我的问题是:* Twisted为什么需要symlink?*有什么方法可以避免使用symlink吗?*有没有其他的解决方案或替代方案可以让Twisted在没有symlink的情况下运行?
诚挚的问候。
发布于 2014-01-21 23:48:17
Symlink用于lockfile.FileSystemLock()的实现,文档如下所示:
class FilesystemLock:
"""
A mutex.
This relies on the filesystem property that creating
a symlink is an atomic operation and that it will
fail if the symlink already exists. Deleting the
symlink will release the lock.因此,您需要做的是以VxWorks支持的其他方式实现该功能。symlink在twisted.conch中还有一两个其他用途,但它们似乎并不重要;主要是在进入Unix系统时建立符号链接的方式。
https://stackoverflow.com/questions/21262364
复制相似问题