include "apythonscript.py"
Larry Bates
lbates at syscononline.com
Mon May 9 11:06:58 EDT 2005
How about?
put apythonscript_function.py in a separate file
then
inculde apythonscript_function.py at the top of maincode.py
Looks like you probably need to go back and read the tutorial.
-Larry
martijn at gamecreators.nl wrote:
> H!
>
> I'm trying to find a python function to use like this:
>
> -- maincode.py
>
> Include "apythonscript_function.py"
>
> -- end
>
> So I can split the maincode.py file in smalle pieces.
> Or yust save the function's in other file and include them once.
> I really want to use this because else { the maincode.py will be super
> super large. }
>
> Thanks,
> GC-Martijn
>
> ----- if you don't understand what I mean: http://www.php.net/include
>
More information about the Python-list
mailing list