diff --git a/pyMSVC/__init__.py b/pyMSVC/__init__.py index a35ed75..de55fea 100644 --- a/pyMSVC/__init__.py +++ b/pyMSVC/__init__.py @@ -41,13 +41,10 @@ import platform -if 'Windows' in platform.platform(): - windows = True -else: - windows = False +windows = 'Windows' in platform.platform() if windows: - import vswhere + from . import vswhere from ctypes import HRESULT from ctypes.wintypes import ( diff --git a/setup.py b/setup.py index c32385c..ff20d18 100644 --- a/setup.py +++ b/setup.py @@ -14,5 +14,6 @@ 'Tired of having a new visual studio version break your setup program?\n' 'This library is the solution.' ), - license='MIT' + license='MIT', + install_requires=["comtypes"], )