File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -140,27 +140,6 @@ returned is a context manager for use in a ``with``-statement::
140
140
141
141
Use all the standard :py:mod: `contextlib ` APIs to manage this context manager.
142
142
143
- .. attention ::
144
-
145
- There is an odd interaction with Python 3.4, 3.5, and 3.6 regarding adding
146
- zip or wheel file paths to ``sys.path ``. Due to limitations in `zipimport
147
- <https://docs.python.org/3/library/zipimport.html> `_, which can't be
148
- changed without breaking backward compatibility, you **must ** use an
149
- absolute path to the zip/wheel file. If you use a relative path, you will
150
- not be able to find resources inside these zip files. E.g.:
151
-
152
- **No **::
153
-
154
- sys.path.append('relative/path/to/foo.whl')
155
- files('foo') # This will fail!
156
-
157
- **Yes **::
158
-
159
- sys.path.append(os.path.abspath('relative/path/to/foo.whl'))
160
- files('foo')
161
-
162
- Both relative and absolute paths work for Python 3.7 and newer.
163
-
164
143
165
144
Migrating from Legacy
166
145
=====================
You can’t perform that action at this time.
0 commit comments