aboutsummaryrefslogtreecommitdiffstats
path: root/config.nmake
diff options
context:
space:
mode:
Diffstat (limited to 'config.nmake')
-rw-r--r--config.nmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/config.nmake b/config.nmake
index d9bde5b8d2..d4a23a4638 100644
--- a/config.nmake
+++ b/config.nmake
@@ -173,6 +173,11 @@ NASM=$(WIRESHARK_LIBS)\nasm-2.02\nasm.exe
#
#PYTHON=env python
+# Santity check: native vs Cygwin Python options
+!IF DEFINED(PYTHON) && DEFINED(PYTHON_DIR)
+!ERROR PYTHON and PYTHON_DIR cannot be specified at the same time
+!ENDIF
+
# Find native Python automatically if PYTHON(_DIR) wasn't defined
!IF !DEFINED(PYTHON) && !DEFINED(PYTHON_DIR)
!IF EXIST(c:\Python27\python.exe)
@@ -184,16 +189,11 @@ PYTHON_VER=25
!ELSE IF EXIST(c:\Python24\python.exe)
PYTHON_VER=24
!ENDIF
-!ENDIF
-
-# Santity check: native vs Cygwin Python options
-!IF DEFINED(PYTHON) && DEFINED(PYTHON_DIR)
-!ERROR PYTHON and PYTHON_DIR cannot be specified at the same time
-!ENDIF
!IF DEFINED(PYTHON_VER)
PYTHON_DIR=C:\Python$(PYTHON_VER)
!ENDIF
+!ENDIF
!IF DEFINED(PYTHON_DIR)
PYTHON="$(PYTHON_DIR)\python.exe"