Re: Need to import stuff

2010-08-17 Thread Abhijeet
Hi, Used imp. It worked. Thanks Daniel Kluev wrote: On Wed, Aug 18, 2010 at 9:40 AM, abhijeet thatte mailto:abhijeet.tha...@gmail.com>> wrote: Hi, Thanks for the reply. But I guess it does not support nested file paths. If user gives 'abcd' then I need to import "//*Do/S

Re: Need to import stuff

2010-08-17 Thread Daniel Kluev
On Wed, Aug 18, 2010 at 9:40 AM, abhijeet thatte wrote: > Hi, > > Thanks for the reply. But I guess it does not support nested file paths. > If user gives 'abcd' then I need to import "*/Do/Stuff/abcd*". Out of > which only *"abcd" is taken run time. Do and Stuff are fixed. * > *I got an error "*I

Fwd: Need to import stuff

2010-08-17 Thread abhijeet thatte
Hi, Thanks for the reply. But I guess it does not support nested file paths. If user gives 'abcd' then I need to import "*/Do/Stuff/abcd*". Out of which only *"abcd" is taken run time. Do and Stuff are fixed. * *I got an error "*ImportError: Import by filename is not supported.". Any solution?? O

Re: Need to import stuff

2010-08-17 Thread Jerry Hill
On Tue, Aug 17, 2010 at 6:21 PM, abhijeet thatte wrote: > Hi, > I need to import few files depending on the user input. For eg if user gives > an input as "abcd" then I will have  import "abcd.py". > Can not have any hard coding in the code. Does any one know how to solve the > problem. Use the _

Need to import stuff

2010-08-17 Thread abhijeet thatte
Hi, I need to import few files depending on the user input. For eg if user gives an input as "abcd" then I will have * import "abcd.py".* Can not have any hard coding in the code. Does any one know how to solve the problem. Thanks -- http://mail.python.org/mailman/listinfo/python-list