From: George F. <Geo...@sa...> - 2007-06-29 18:30:29
|
How does STAX treat the PYTHONPATH? Does it include/pickup whatever is = in the PYTHONPATH upon startup of the STAFProc? If so, do the stax script tags have access the same PYTHONPATH? For example I have included an additional dir, with a custom python = class..... [From an interactive session of python] >>> from SASPerfMgr import * >>> [Should the following have the same access as the interactive python = session above?] <defaultcall function=3D"test"/> <function name=3D"test"> <function-description>Runs a test on a machine.</function-description> = =09 <sequence> =09 <script> from SASPerfMgr import * =09 </script> </sequence> </function>=09 [Upon submission, I get the following...basically can't find the class] 20070629-14:20:25 STAXPythonEvaluationError signal raised. Terminating = job. =3D=3D=3D=3D=3D Element Information =3D=3D=3D=3D=3D =3D=3D=3D=3D=3D = Python Error Information =3D=3D=3D=3D=3D = com.ibm.staf.service.stax.STAXPythonEvaluationException: Traceback = (innermost last): File "", line 1, in ? ImportError: no module named = SASPerfMgr =3D=3D=3D=3D=3D Call Stack for STAX Thread 1 =3D=3D=3D=3D=3D = [ Block: main Sequence: 18/18 Function: test Sequence: 1/1 ] =20 |