Skip to content

Commit

Permalink
del sys.path[0] again
Browse files Browse the repository at this point in the history
  • Loading branch information
jamison-lahman-ai committed Jun 3, 2024
1 parent 3505683 commit 330af38
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/python/python_bootstrap_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@

from __future__ import print_function

import sys

# The Python interpreter unconditionally prepends the directory containing this
# script (following symlinks) to the import path. This is the cause of #9239,
# and is a special case of #7091. We therefore explicitly delete that entry.
# TODO(#7091): Remove this hack when no longer necessary.
del sys.path[0]

import os
import re
import tempfile
import shutil
import sys
import subprocess
import zipfile

Expand Down

0 comments on commit 330af38

Please sign in to comment.