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 Jan 28, 2021
1 parent 1d60e77 commit c78693f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions boilerplate/boilerplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,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.join(rootdir, "hack/boilerplate")

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

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

0 comments on commit c78693f

Please sign in to comment.