2014-01-21 1 views
0

포트를 VxWorks에서 트위스트하려고했습니다. 하지만 그것은 symlink를 지원하지 않습니다. 즉, ImportError : name symlink를 가져올 수 없습니다.Twisted/symlink in twisted/python/lockfile.py

내 질문은 : * 왜 Twisted는 symlink가 필요합니까? * symlink를 사용하지 않으려면 어떻게해야합니까? * 심볼릭 링크없이 Twisted를 실행하는 다른 솔루션이나 대안이 있습니까?

감사합니다.

+1

'grep -inr symlink twisted /'? –

답변

0

심볼릭 링크는 다음과 같이 설명되어 있습니다 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에 하나 또는 두 가지가 있지만 중요하지는 않습니다. 유닉스 시스템으로 SSH 할 때 주로 심볼릭 링크를 만드는 방법.