##// END OF EJS Templates
fuzz: add hg to sys.path when constructing mpatch corpus...
Augie Fackler -
r48130:43f6a7bb default
parent child Browse files
Show More
@@ -1,10 +1,15 b''
1 from __future__ import absolute_import, print_function
1 from __future__ import absolute_import, print_function
2
2
3 import argparse
3 import argparse
4 import os
4 import struct
5 import struct
5 import sys
6 import sys
6 import zipfile
7 import zipfile
7
8
9 # Add ../.. to sys.path as an absolute path so we can import hg modules
10 hgloc = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
11 sys.path[0:0] = [hgloc]
12
8 from mercurial import (
13 from mercurial import (
9 hg,
14 hg,
10 ui as uimod,
15 ui as uimod,
General Comments 0
You need to be logged in to leave comments. Login now