Say I have an application whose configuration language I want to be
Python. I have all my extra types implemented in C. Now what I'm
wondering is what's the best way to run that file so that the
functions, variables, etc. get imported into the Python interpreter
embedded in my program?
Along the same lines, once I have run the file, what's the easiest way
to find out if a particular function/variable has been defined? For
example, if I always wanted to run the user-defined function
`startup_func', how would I go about doing that?
--
Nathan | nathan.froyd@rose-hulman.edu | http://www.rose-hulman.edu/~froydnj/
God went through hell so we don't have to. ICQ:18861764 | AOL:myrlyn007
Avoid the gates of hell. Use Linux. Python:"x='x=%s;x%%`x`';x%`x`"
Evolution is a million line computer program falling into place by accident.
Python. I have all my extra types implemented in C. Now what I'm
wondering is what's the best way to run that file so that the
functions, variables, etc. get imported into the Python interpreter
embedded in my program?
Along the same lines, once I have run the file, what's the easiest way
to find out if a particular function/variable has been defined? For
example, if I always wanted to run the user-defined function
`startup_func', how would I go about doing that?
--
Nathan | nathan.froyd@rose-hulman.edu | http://www.rose-hulman.edu/~froydnj/
God went through hell so we don't have to. ICQ:18861764 | AOL:myrlyn007
Avoid the gates of hell. Use Linux. Python:"x='x=%s;x%%`x`';x%`x`"
Evolution is a million line computer program falling into place by accident.