On Oct 18, 2:51 am, Vince <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Sorry but I tried so many times, and it still does not work. I have
> the same configuration. I just move my folder "lib" in the folder
> htdocs. Then I tried from lib.myfile import *, from
> helloworld.lib.myfile import *, or: from lib.myfile import MyClass
> The error remains the same.
>
> I don't have any problems to import other module, it's just for my
> file .py that I cannot.
> If I have no response I will go on IRC.
>
1) The folder should be inside the package directly, and not the
htdocs.
2) Folders need to be declared in setup.py, so that for your source
folders it will contain one argument looking like this:
packages = [myplugin, myplugin.lib'],
3) Check out one of the plugins on Trac-Hacks.org and read source and
setup script - learning by reviewing the source of others is a great
way to get started. A good starting point could perhaps be the
discussion plugin because it contains a setup reflecting your
attempts, and it implements a relatively large number of interfaces
and extensions - request handler, templates, htdocs, timeline, search,
macros, linking and more:
http://trac-hacks.org/browser/discussionplugin/0.11
Good luck, and feel free to visit on the IRC channel.
:::simon
https://www.coderesort.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---