Skip to content

Commit

Permalink
Fix more cases of zope.__file__. In case of zope.app.locales.extract …
Browse files Browse the repository at this point in the history
…we don't

have to do anything now.  When this script eventulaly moves somewhere else
to be better reusable (zope.i18n perhaps), the code should be refactored (added
TODO comment).

THis addresses collector #683.
  • Loading branch information
philikon committed Aug 13, 2006
1 parent 16b0d11 commit 9e47540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities.py
Expand Up @@ -23,7 +23,7 @@
import inspect
from os.path import dirname

import zope
import zope.app
from zope.interface import implements, implementedBy
from zope.publisher.browser import TestRequest
from zope.security.checker import getCheckerForInstancesOf, Global
Expand All @@ -43,7 +43,7 @@

_marker = object()

BASEDIR = dirname(dirname(dirname(zope.__file__)))
BASEDIR = dirname(dirname(dirname(dirname(zope.app.__file__))))

def relativizePath(path):
return path.replace(BASEDIR, 'Zope3')
Expand Down

0 comments on commit 9e47540

Please sign in to comment.