Solve wintypes import

This commit is contained in:
Julien Duponchelle committed 2016-04-28 16:35:58 +02:00
1 parent 4fc5364ab5
commit 85f571ee8b
1 file changed
+1
+1
View File
@@ -646,6 +646,7 @@ class VMware(BaseManager):
if sys.platform.startswith("win"):
import ctypes
import ctypes.wintypes
path = ctypes.create_unicode_buffer(ctypes.wintypes.MAX_PATH)
ctypes.windll.shell32.SHGetFolderPathW(None, 5, None, 0, path)
documents_folder = path.value