comparison PyPlugScanner.cpp @ 3:134313c59d82

* Add global mutex to PyPlugin -- all plugin method calls are strictly serialised in order to avoid problems with Python interpreter's lack of thread safety.
author cannam
date Fri, 14 Mar 2008 12:02:15 +0000
parents e20e214bdfb5
children a4c955e9a70b
comparison
equal deleted inserted replaced
2:211ebe55d521 3:134313c59d82
4 * Copyright 2008, George Fazekas. 4 * Copyright 2008, George Fazekas.
5 5
6 */ 6 */
7 7
8 8
9 #include "/usr/include/python/Python.h"
10 #include "PyPlugScanner.h" 9 #include "PyPlugScanner.h"
11 10
12 //#include <fstream> 11 //#include <fstream>
13 //#include <cctype> 12 //#include <cctype>
14 13
196 return files; 195 return files;
197 } 196 }
198 197
199 //Return correct plugin directories as per platform 198 //Return correct plugin directories as per platform
200 //Code taken from vamp-sdk/PluginHostAdapter.cpp 199 //Code taken from vamp-sdk/PluginHostAdapter.cpp
200
201 //!!! It would probably be better to actually call
202 // PluginHostAdapter::getPluginPath. That would mean this "plugin"
203 // needs to link against vamp-hostsdk, but that's probably acceptable
204 // as it is sort of a host as well.
205
201 std::vector<std::string> 206 std::vector<std::string>
202 PyPlugScanner::getAllValidPath() 207 PyPlugScanner::getAllValidPath()
203 { 208 {
204 std::vector<std::string> path; 209 std::vector<std::string> path;
205 std::string envPath; 210 std::string envPath;