File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 19
19
import argparse
20
20
import difflib
21
21
import glob
22
- import json
23
- import mmap
24
22
import os
25
23
import re
26
24
import sys
33
31
nargs = '*' )
34
32
35
33
# Rootdir defaults to the directory **above** the repo-infra dir.
36
- rootdir = os .path .dirname (__file__ ) + "./../../../ "
34
+ rootdir = os .path .dirname (__file__ ) + "./../../"
37
35
rootdir = os .path .abspath (rootdir )
38
36
parser .add_argument (
39
37
"--rootdir" , default = rootdir , help = "root directory to examine" )
40
38
41
- default_boilerplate_dir = os .path .join ( rootdir , "csi-driver-nfs/hack/boilerplate" )
39
+ default_boilerplate_dir = os .path .abspath ( os . path . dirname ( __file__ ) )
42
40
43
41
parser .add_argument (
44
42
"--boilerplate-dir" , default = default_boilerplate_dir )
@@ -199,4 +197,4 @@ def main():
199
197
return 0
200
198
201
199
if __name__ == "__main__" :
202
- sys .exit (main ())
200
+ sys .exit (main ())
You can’t perform that action at this time.
0 commit comments