26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
From: nathan.froyd at rose-hulman.edu (Nathan Froyd)
|
|
Date: 27 Apr 1999 21:44:00 -0500
|
|
Subject: running application config files written in Python
|
|
Message-ID: <m33e1lcvm7.fsf@froydnj.laptop.rose-hulman.edu>
|
|
X-UID: 408
|
|
|
|
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 at 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.
|
|
|
|
|
|
|
|
|