1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-15 12:59:06 +00:00

Solve wintypes import

This commit is contained in:
Julien Duponchelle 2016-04-28 16:35:18 +02:00
parent 4fc5364ab5
commit 85f571ee8b
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

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