twisted\python\lockfile.py problem on portable Python install

[email protected]
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from JamesB <None>:

I'm running Python from a USB key, and as a result Pywin32 has never been formally installed.

Regular Python doesn't seem to have a problem, but Pywin32 fails with
{{{
from win32api import OpenProcess
}}}
Now, why this pertains to Twisted -- I found a workaround [http://groups.google.com/group/movpy/browse_thread/thread/4186e56692014bed?pli=1 here].

{{{
    _windows = True
    from win32api import OpenProcess
    import pywintypes
}}}
becomes
{{{
    _windows = True
    import pywintypes
    from win32api import OpenProcess
}}}

Fixes it. Weird.

----------
Type     : defect
Component: core
Keywords : 
Priority : normal
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/3868
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.