Vo Minh Thu 14acff6cc4 [MERGE] use an import hook instead of appending to sys.path.
This replaces sys.path mutation with an import hook. It removes the clash 
between our own 'resource' addons and the standard Python resource module. It
provides a transition between our current practice and a cleaner
'openerp.addons' namespace.

The import hook makes it possible to either 'import openerp.addons.hr' or 
'import hr' in the addons (ie. both paths are set in sys.modules). When trying 
to import an already existing (non-openerp) Python module (e.g. resource), it
will indeed load the Python module and print a warning (to invite you to use
openerp.addons.resource if this is the one you want).

Unfortunately, the import hook doesn't support self-referential imports. E.g. 
hr.wizard.xxx can't use 'import hr.yyy' or 'from hr import yyy'. Python will
fail to load hr with cryptic error messages or even a segmentation fault.

Beginning with this patch, 'import openerp.addons.xxx' is the way to go, 
'import xxx' is deprecated. Once 'import xxx' support can be removed, we will
probably support pkgutil or setuptool namespaces.

bzr revid: vmt@openerp.com-20120118104505-tns626ga47dwl7it
2012-01-18 11:45:05 +01:00
2012-01-12 15:02:34 +01:00
2011-10-14 11:36:44 +02:00
2011-12-05 11:50:28 +01:00
2012-01-16 12:04:34 +01:00
2011-05-13 13:42:28 +02:00
2011-09-06 21:20:04 +02:00
2011-10-06 05:14:26 +02:00
2012-01-12 15:02:34 +01:00

pydot - Python interface to Graphviz's Dot language
Ero Carrera (c) 2004-2007
ero@dkbza.org

This code is distributed under the MIT license.

Requirements:
-------------

pyparsing: pydot requires the pyparsing module in order to be
	able to load DOT files.

GraphViz:  is needed in order to render the graphs into any of
	the plethora of output formats supported.

Installation:
-------------

Should suffice with doing:

 python setup.py install

Needless to say, no installation is needed just to use the module. A mere:

 import pydot

should do it, provided that the directory containing the modules is on Python
module search path.

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%