caesar0301 / treelib

An efficient implementation of tree data structure in python 2/3.
http://treelib.readthedocs.io/en/latest/
Other
801 stars 185 forks source link

About setup instructions #3

Closed simprince closed 11 years ago

simprince commented 11 years ago

I am very new to Python but I have a lot of programming experience. So please excuse me for my ignorance. I downloaded the zip file and renamed the extracted folder as pyTree. Then I placed it in my project folder. In my code, I have to do

from pyTree.node import Node from pyTree.tree import Tree

If I put from pyTree import tree, node, it fails. Any idea?

hbast commented 11 years ago

just import the module like this: import tree

That's it ;-)

caesar0301 commented 11 years ago

Now you can import these classes using

from treelib import Tree, Node

:)