jaraco / jaraco.windows

MIT License
29 stars 7 forks source link

bug in api/filesystem.py #4

Closed jaraco closed 8 years ago

jaraco commented 9 years ago

Originally reported by: Shlomi Kushchi (Bitbucket: shlomi_kushchi, GitHub: shlomi_kushchi)


hi.

you have a bug in 3.1.1

#!python

from jaraco.windows import filesystem

causes:

#!python

C:\Python27\lib\site-packages\jaraco\windows\api\filesystem.py in <module>()
      3 CreateSymbolicLink = ctypes.windll.kernel32.CreateSymbolicLinkW
      4 CreateSymbolicLink.argtypes = (
----> 5         ctypes.wintypes.ctypes.wintypes.LPWSTR,
      6         ctypes.wintypes.LPWSTR,
      7         ctypes.wintypes.DWORD,

AttributeError: 'module' object has no attribute 'ctypes'

line 5 should be: ctypes.wintypes.LPWSTR,


jaraco commented 9 years ago

Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco):


Released as 3.1.2. Thanks for the report.

jaraco commented 9 years ago

Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco):


Digest copy pasta. Fixes #4.