Skip to content

Commit

Permalink
Merge pull request #2 from creative-commoners/pulls/1.0/abspath
Browse files Browse the repository at this point in the history
ENH Allow passing in a relative path as an argument
  • Loading branch information
GuySartorelli authored Apr 9, 2024
2 parents 9fb4e41 + 32053da commit fdd547b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/doclint
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ if [[ -z $MODULE_DIR ]]; then
MODULE_DIR=$ORIG_DIR
fi

# If the module directory is not an absolute path, make it one
if [[ $MODULE_DIR != $ORIG ]] && [[ $MODULE_DIR != "/*" ]]; then
MODULE_DIR="${ORIG_DIR}/${MODULE_DIR}"
fi

# Get and validate the config file path
CONFIG_FILE="${MODULE_DIR}/.doclintrc"
if ! [[ -f $CONFIG_FILE ]]; then
Expand Down

0 comments on commit fdd547b

Please sign in to comment.