Mercurial > hg > vampy
comparison pyvamp-main.cpp @ 20:812fbde7eca5
* Don't even try to preload on Windows
author | cannam |
---|---|
date | Tue, 14 Jul 2009 11:31:52 +0000 |
parents | a54850da8229 |
children | 7d28bed0864e |
comparison
equal
deleted
inserted
replaced
19:a54850da8229 | 20:812fbde7eca5 |
---|---|
124 return true; | 124 return true; |
125 } | 125 } |
126 | 126 |
127 static bool preloadPython() | 127 static bool preloadPython() |
128 { | 128 { |
129 // useless on Windows | 129 #ifdef _WIN32 |
130 // this doesn't seem to be necessary at all on Windows | |
131 return true; | |
132 #endif | |
130 | 133 |
131 string pyver = Py_GetVersion(); | 134 string pyver = Py_GetVersion(); |
132 int dots = 2; | 135 int dots = 2; |
133 string shortver; | 136 string shortver; |
134 for (size_t i = 0; i < pyver.length(); ++i) { | 137 for (size_t i = 0; i < pyver.length(); ++i) { |