Skip to content

Commit b34aef8

Browse files
committed
Revert "<third_party/jinja2> FIXUP: Prevent a python IOError on Windows"
This reverts commit 429f117. The following commit covers this issue: <tools/gyp> Prevent a python IOError on Windows 759f070 Task-number: QTBUG-46938 Change-Id: I2a9b52cc7628fc146c16b370c0dd3bda096465c1 Reviewed-by: Joerg Bornemann <[email protected]>
1 parent 759f070 commit b34aef8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

chromium/third_party/jinja2/bccache.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,7 @@ def __init__(self, directory=None, pattern='__jinja2_%s.cache'):
207207
self.pattern = pattern
208208

209209
def _get_cache_filename(self, bucket):
210-
# Relative path might be longer than 260 characters (MAX_PATH) especially when
211-
# shadow building on Windows. To avoid errors use potentially shorter absolute paths.
212-
return path.join(path.abspath(self.directory), self.pattern % bucket.key)
210+
return path.join(self.directory, self.pattern % bucket.key)
213211

214212
def load_bytecode(self, bucket):
215213
f = open_if_exists(self._get_cache_filename(bucket), 'rb')

0 commit comments

Comments
 (0)