Skip to content
Snippets Groups Projects
Commit ab776610 authored by Gregory Szorc's avatar Gregory Szorc
Browse files

check-seclevel: set module load policy to Python only

If we don't change this, the upcoming change to make the module
loading policy only load C modules will cause this script to fail if
run with CPython against an unbuilt source checkout.
parent 4374d819
No related branches found
No related tags found
No related merge requests found
......@@ -6,4 +6,5 @@
import optparse
# import from the live mercurial repo
os.environ['HGMODULEPOLICY'] = 'py'
sys.path.insert(0, "..")
......@@ -9,6 +10,4 @@
sys.path.insert(0, "..")
# fall back to pure modules if required C extensions are not available
sys.path.append(os.path.join('..', 'mercurial', 'pure'))
from mercurial import demandimport; demandimport.enable()
from mercurial.commands import table
from mercurial.help import helptable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment