summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Garland <johnnyg@gmail.com>2009-02-25 08:05:12 +0000
committerJohn Garland <johnnyg@gmail.com>2009-02-25 08:05:12 +0000
commit538643b5ba8acfc6b98e08d8440ca7abede131c5 (patch)
tree205b618a05e89b4f2b17793a3f7bbc70aecaaac3
parentc7a67f5c5320e376c262c8ee6e1afa08871e147d (diff)
downloaddeluge-538643b5ba8acfc6b98e08d8440ca7abede131c5.tar.gz
deluge-538643b5ba8acfc6b98e08d8440ca7abede131c5.tar.bz2
deluge-538643b5ba8acfc6b98e08d8440ca7abede131c5.zip
Moved setting python dir to its own function
-rw-r--r--win32/deluge.nsi6
1 files changed, 5 insertions, 1 deletions
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