Skip to content

Commit

Permalink
fix: default boilerplate path
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyang5055 committed Feb 3, 2021
1 parent 1d60e77 commit 26e2ab1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions boilerplate/boilerplate.py
Expand Up @@ -19,8 +19,6 @@
import argparse
import difflib
import glob
import json
import mmap
import os
import re
import sys
Expand All @@ -33,12 +31,12 @@
nargs='*')

# Rootdir defaults to the directory **above** the repo-infra dir.
rootdir = os.path.dirname(__file__) + "./../../../"
rootdir = os.path.dirname(__file__) + "./../../"
rootdir = os.path.abspath(rootdir)
parser.add_argument(
"--rootdir", default=rootdir, help="root directory to examine")

default_boilerplate_dir = os.path.join(rootdir, "csi-driver-nfs/hack/boilerplate")
default_boilerplate_dir = os.path.abspath(os.path.dirname(__file__))

parser.add_argument(
"--boilerplate-dir", default=default_boilerplate_dir)
Expand Down Expand Up @@ -199,4 +197,4 @@ def main():
return 0

if __name__ == "__main__":
sys.exit(main())
sys.exit(main())

0 comments on commit 26e2ab1

Please sign in to comment.