<br><div class="gmail_quote">On Wed, Aug 18, 2010 at 9:40 AM, abhijeet thatte <span dir="ltr"><<a href="mailto:abhijeet.thatte@gmail.com">abhijeet.thatte@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote">Hi,</div><div class="gmail_quote"><br></div><div class="gmail_quote">Thanks for the reply. But I guess it does not support nested file paths. <div>If user gives 'abcd' then I need to import "<i>/<b>Do/Stuff/abcd</b></i>". Out of which only <i>"abcd" is taken run time. Do and Stuff are fixed. </i></div>


<div><i>I got an error "</i>ImportError: Import by filename is not supported.". Any solution??</div><div class="im"><div><div></div><br></div></div></div></blockquote><div><br>For complex importing, you can use imp module,<br>
<a href="http://docs.python.org/library/imp.html">http://docs.python.org/library/imp.html</a><br><br>Like this:<br>module_desc = imp.find_module(name, [base_path])<br>module = imp.load_module(full_name, *module_desc)<br> </div>
</div>-- <br>With best regards,<br>Daniel Kluev<br><br>