Re: run-time inclusion of files

2009-09-05 Thread Stephen Fairchild
travis+ml-pyt...@subspacefield.org wrote: > I'm interested in three seperate problems: > > 1) being able to import a file that isn't in the standard module include > path sys.path.insert(0, "/path/to/module" module = __import__("module") del sys.path[0] Ideally this goes into a function, possib

Re: run-time inclusion of files

2009-09-05 Thread Chris Rebert
On Sat, Sep 5, 2009 at 3:23 PM, wrote: > Hello, > > I was wondering if there was something like Perl's "require" that allows > you to import a file whose name is specified at run-time.  So far I've only > seen imports of modules that are put in the standard module include path. You'll need to use

run-time inclusion of files

2009-09-05 Thread travis+ml-python
Hello, I was wondering if there was something like Perl's "require" that allows you to import a file whose name is specified at run-time. So far I've only seen imports of modules that are put in the standard module include path. I'm interested in three seperate problems: 1) being able to import