[issue1763] Winpath module - easy access to Windows directories like My Documents
Hirokazu Yamamoto
report at bugs.python.org
Sun Feb 10 03:12:43 CET 2008
Hirokazu Yamamoto added the comment:
Sorry for interruption. I'm a little doubtful this is really needed.
We can get "My Documents" path by following 5 lines of code.
import ctypes
dll = ctypes.windll.shell32
buf = ctypes.create_string_buffer(300)
dll.SHGetSpecialFolderPathA(None, buf, 0x0005, False)
print buf.value
And if this patch goes in, I'm using clipboard in my several python
scripts, is it also possible to add clipboard support?
(I implemented ocean/clipboard.py under PYTHONPATH and now using it
personally)
# And, well, r60696 blocks me from building python on VC6, if this change
# (WINVER = 0x500) is required for this issue only, I'm happy if this
# would be reverted but... I cannot claim it loudly. I'm using win2000,
# and latest free compiler doesn't support it :-(
----------
nosy: +ocean-city
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1763>
__________________________________
More information about the Python-bugs-list
mailing list