H3D API  2.4.1
Functions
PythonScript.cpp File Reference

cpp file for PythonScript More...

#include <H3D/PythonScript.h>
#include <H3D/X3DTypes.h>
#include <H3D/X3DFieldConversion.h>
#include <H3D/Scene.h>
#include <H3D/X3D.h>
#include <H3D/X3DSAX2Handlers.h>
#include <H3D/MFNode.h>
#include <H3DUtil/ResourceResolver.h>
#include <H3D/GlobalSettings.h>
#include <string>
#include <algorithm>
#include <cctype>
#include <fstream>
#include <pyconfig.h>
#include <Python.h>
#include <pythonrun.h>
#include <ceval.h>
#include <moduleobject.h>
#include <structmember.h>
#include <H3D/PythonMethods.h>
#include <H3D/PythonTypes.h>

Functions

PyObject * PythonScriptInternals::PyRun_StringFilename (const char *str, const char *filename, int start, PyObject *globals, PyObject *locals)
 The normal PyRun_String method does not allow a filename to be passed along for better error messages and trace backs. More...
 

Detailed Description

cpp file for PythonScript

Function Documentation

◆ PyRun_StringFilename()

PyObject* PythonScriptInternals::PyRun_StringFilename ( const char *  str,
const char *  filename,
int  start,
PyObject *  globals,
PyObject *  locals 
)
inline

The normal PyRun_String method does not allow a filename to be passed along for better error messages and trace backs.

This function does the same as PyRun_String but also takes the filename where the string originated from.

References PythonScriptInternals::PyRun_StringFilename().

Referenced by PythonScriptInternals::PyRun_StringFilename().