diff --git a/stubs.cmake b/stubs.cmake index 9db2ec914..e319b936a 100644 --- a/stubs.cmake +++ b/stubs.cmake @@ -97,7 +97,7 @@ function(GENERATE_STUBS module_path module_name module_install_dir) endif($ENV{PYTHONPATH}) if(WIN32) - if($ENV{PYTHONPATH}) + if($ENV{PATH}) set(WINDOWS_PATH ${module_path};$ENV{PATH}) else() set(WINDOWS_PATH ${module_path})