From 538643b5ba8acfc6b98e08d8440ca7abede131c5 Mon Sep 17 00:00:00 2001 From: John Garland Date: Wed, 25 Feb 2009 08:05:12 +0000 Subject: [PATCH] Moved setting python dir to its own function --- win32/deluge.nsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/win32/deluge.nsi b/win32/deluge.nsi index 1069fb131..9e0eb81bb 100644 --- a/win32/deluge.nsi +++ b/win32/deluge.nsi @@ -103,12 +103,16 @@ ; Functions -Function .onInit +Function set_python_dir ReadRegStr $PYTHONDIR HKLM "SOFTWARE\Python\PythonCore\${PYTHON_VERSION}\InstallPath" "" IfErrors 0 +2 StrCpy $PYTHONDIR "$INSTDIR\Python" FunctionEnd +Function .onInit + Call set_python_dir +FunctionEnd + ; General Settings ; Version