()
| 189 | buf_size += needed |
| 190 | |
| 191 | def document_dir(): |
| 192 | CSIDL_PERSONAL = 5 # My Documents |
| 193 | SHGFP_TYPE_CURRENT = 0 # Get current, not default value |
| 194 | |
| 195 | buf = ctypes.create_unicode_buffer(wintypes.MAX_PATH) |
| 196 | ctypes.windll.shell32.SHGetFolderPathW( |
| 197 | None, CSIDL_PERSONAL, None, SHGFP_TYPE_CURRENT, buf |
| 198 | ) |
| 199 | |
| 200 | return buf.value |
| 201 | |
| 202 | else: |
| 203 | def env(name): |
no outgoing calls
no test coverage detected