mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
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.
This commit is contained in:
parent
d7669a769a
commit
ec18b44ca2
@ -6,9 +6,8 @@ import sys, os
|
||||
import optparse
|
||||
|
||||
# import from the live mercurial repo
|
||||
os.environ['HGMODULEPOLICY'] = 'py'
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user