File: usercustomize.py

package info (click to toggle)
zope.sqlalchemy 3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 340 kB
  • sloc: python: 981; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# This file was copied from
# https://salsa.debian.org/python-team/packages/zope.deprecation/-/blob/master/debian/usercustomize.py
# on 2025-03-09.

# Work around difficulties with pre-PEP-420 namespace packages: the .pth
# files from build-dependencies are loaded during site initialization,
# adding the system "zope" package directory to sys.path, but we want to
# ensure that subpackages of zope can be imported both from our
# build-dependencies and from this package while running tests.

import os.path

import zope

zope.__path__[:0] = [os.path.join(os.path.dirname(__file__), "zope")]