import right here?

25 views
Skip to first unread message

Pham Quang Dung

unread,
May 29, 2014, 6:40:43 AM5/29/14
to web...@googlegroups.com
I have placed an __init__.py file in the folder (windows) of the controller xyz.py but cannot import abc.py at the same location. Any hints to use path + file name, or copy the abc.py to where? I am newbee, sorry.

Niphlod

unread,
May 29, 2014, 3:37:19 PM5/29/14
to web...@googlegroups.com
read the book before posting. from here onwards there is the documentation about third-party modules and the execution environment of web2py.
http://web2py.com/books/default/chapter/29/04/the-core#Third-party-modules

Pham Quang Dung

unread,
May 30, 2014, 8:05:11 PM5/30/14
to web...@googlegroups.com
Yes, I had. Just tried to find another way to import a file directly without easyinstall.
When I placed it in the module subfolder, this rpdb2 (it is), cannot import as a module. Anyway, will use easyinstall then.
Reply all
Reply to author
Forward
0 new messages