Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#132 from yiyang5055/bugfix/boilerplate
Browse files Browse the repository at this point in the history
fix: default boilerplate path
  • Loading branch information
k8s-ci-robot committed Feb 3, 2021
2 parents 1add8c1 + 26e2ab1 commit 316cb95
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions boilerplate/boilerplate.py
Original file line number Diff line number Diff line change
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 316cb95

Please sign in to comment.