#include <boost/filesystem/operations.hpp>
#include <opencog/util/Config.h>
#include <opencog/util/exceptions.h>
#include <opencog/util/Logger.h>
#include <opencog/util/misc.h>
#include <opencog/util/oc_assert.h>
#include <opencog/atomspace/Atom.h>
#include <opencog/atomspace/Link.h>
#include "PythonEval.h"
#include "opencog/atomspace_api.h"
Go to the source code of this file.
#define NO_COMPILER_FLAGS NULL |
static const char** get_module_paths |
( |
| ) |
|
|
static |
static bool try_to_load_modules |
( |
const char ** |
config_paths | ) |
|
|
static |
Ongoing python nuttiness. Because we never know in advance whether python will be able to find a module or not, until it actually does, we have to proceed by trial and error, trying different path combinations, until it finally works. The sequence of paths that leads to success will then be delcared the official system path, henceforth. Woe unto those try to defy the will of the python gods.
Return true if the load worked, else return false.
Definition at line 173 of file PythonEval.cc.
const int ABSOLUTE_IMPORTS_ONLY = 0 |
bool already_initialized = false |
|
static |
const char* DEFAULT_PYTHON_MODULE_PATHS[] |
|
static |
Initial value:=
{
DATADIR"/python",
"/usr/local/share/opencog/python",
"/usr/share/opencog/python",
NULL
}
Definition at line 81 of file PythonEval.cc.
bool initialized_outside_opencog = false |
|
static |
const int MISSING_FUNC_CODE = -1 |
const char* NO_FUNCTION_NAME = NULL |
const int NO_SIGNAL_HANDLERS = 0 |
const char* PROJECT_PYTHON_MODULE_PATHS[] |
|
static |
Initial value:=
{
PROJECT_BINARY_DIR"/opencog/cython",
PROJECT_SOURCE_DIR"/opencog/python",
PROJECT_SOURCE_DIR"/tests/cython",
NULL
}
Definition at line 91 of file PythonEval.cc.
const int SIMPLE_STRING_FAILURE = -1 |
const int SIMPLE_STRING_SUCCESS = 0 |