Skip to content

Commit

Permalink
stubs: fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Nov 14, 2023
1 parent 93540c7 commit 565ba9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stubs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ function(GENERATE_STUBS module_path module_name module_install_dir)
endif($ENV{PYTHONPATH})

if(WIN32)
if($ENV{PATH})
set(WINDOWS_PATH ${module_path};$ENV{PATH})
else()
if("$ENV{PATH}" STREQUAL "")
set(WINDOWS_PATH ${module_path})
else()
set(WINDOWS_PATH ${module_path};$ENV{PATH})
endif()

set(ENV_WINDOWS_PATH "PATH=${WINDOWS_PATH}")
Expand Down

0 comments on commit 565ba9c

Please sign in to comment.