2620: GEPS 031: Python 3 support - 3.2

Python 3 needs absolute import after reload in plugins dir, but a dir may not be called import
So import is renamed to importer


svn: r20660
This commit is contained in:
Benny Malengier 2012-11-15 10:41:15 +00:00
parent 1cad822978
commit eb09afbc99
15 changed files with 14 additions and 14 deletions

View File

@ -49,7 +49,7 @@ log = logging.getLogger(".ReadPkg")
from gramps.gen.const import XMLFILE
from gramps.gen.utils.file import media_path
## we need absolute import as this is dynamically loaded:
from gramps.plugins.importers.importxml import importData
from gramps.plugins.importer.importxml import importData
#-------------------------------------------------------------------------
#

View File

@ -550,16 +550,16 @@ gramps/plugins/graph/graphplugins.gpr.py
gramps/plugins/graph/gvfamilylines.py
gramps/plugins/graph/gvhourglass.py
gramps/plugins/graph/gvrelgraph.py
gramps/plugins/import/import.gpr.py
gramps/plugins/import/importcsv.py
gramps/plugins/import/importgedcom.glade
gramps/plugins/import/importgedcom.py
gramps/plugins/import/importgeneweb.py
gramps/plugins/import/importgpkg.py
gramps/plugins/import/importgrdb.py
gramps/plugins/import/importprogen.py
gramps/plugins/import/importvcard.py
gramps/plugins/import/importxml.py
gramps/plugins/importer/import.gpr.py
gramps/plugins/importer/importcsv.py
gramps/plugins/importer/importgedcom.glade
gramps/plugins/importer/importgedcom.py
gramps/plugins/importer/importgeneweb.py
gramps/plugins/importer/importgpkg.py
gramps/plugins/importer/importgrdb.py
gramps/plugins/importer/importprogen.py
gramps/plugins/importer/importvcard.py
gramps/plugins/importer/importxml.py
gramps/plugins/lib/holidays.xml.in
gramps/plugins/lib/libgedcom.py
gramps/plugins/lib/libgrdb.py

View File

@ -464,8 +464,8 @@ gramps/plugins/quickview/__init__.py
#
# plugins/import directory
#
gramps/plugins/import/__init__.py
gramps/plugins/import/test/importVCard_test.py
gramps/plugins/importer/__init__.py
gramps/plugins/importer/test/importVCard_test.py
#
# plugins/gramplet directory
#

View File

@ -399,7 +399,7 @@ setup(name = 'gramps',
'gramps.plugins.export',
'gramps.plugins.gramplet',
'gramps.plugins.graph',
'gramps.plugins.import',
'gramps.plugins.importer',
'gramps.plugins.lib',
'gramps.plugins.lib.maps',
'gramps.plugins.mapservices',