Mercurial > hg > vampy
comparison pyvamp-main.cpp @ 29:e80caada79a8
* Remove nonportable and unnecessary opendir features test (originally
inherited from the Vamp SDK's implementation of a similar plugin lookup,
but it's been gone from the SDK for ages now)
* Comment out some excessive debug output
author | cannam |
---|---|
date | Tue, 22 Sep 2009 15:20:44 +0000 |
parents | ba3686eb697c |
children |
comparison
equal
deleted
inserted
replaced
28:5139bf30f208 | 29:e80caada79a8 |
---|---|
70 static std::vector<PyPluginAdapter *> adapters; | 70 static std::vector<PyPluginAdapter *> adapters; |
71 static bool haveScannedPlugins = false; | 71 static bool haveScannedPlugins = false; |
72 | 72 |
73 static bool tryPreload(string name) | 73 static bool tryPreload(string name) |
74 { | 74 { |
75 cerr << "Trying to load Python interpreter library \"" << name << "\"..."; | 75 // cerr << "Trying to load Python interpreter library \"" << name << "\"..."; |
76 #ifdef _WIN32 | 76 #ifdef _WIN32 |
77 void *lib = LoadLibrary(name.c_str()); | 77 void *lib = LoadLibrary(name.c_str()); |
78 if (!lib) { | 78 if (!lib) { |
79 cerr << " failed" << endl; | 79 // cerr << " failed" << endl; |
80 return false; | 80 return false; |
81 } | 81 } |
82 #else | 82 #else |
83 void *lib = dlopen(name.c_str(), RTLD_NOW | RTLD_GLOBAL); | 83 void *lib = dlopen(name.c_str(), RTLD_NOW | RTLD_GLOBAL); |
84 if (!lib) { | 84 if (!lib) { |
85 cerr << " failed" << endl; | 85 // cerr << " failed" << endl; |
86 return false; | 86 return false; |
87 } | 87 } |
88 #endif | 88 #endif |
89 cerr << " succeeded" << endl; | 89 // cerr << " succeeded" << endl; |
90 return true; | 90 return true; |
91 } | 91 } |
92 | 92 |
93 static bool preloadPython() | 93 static bool preloadPython() |
94 { | 94 { |