Skip to content

Commit

Permalink
ENH Allow passing in a relative path as an argument
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Apr 8, 2024
1 parent 9fb4e41 commit 9372f10
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 ]] && ! [[ -d $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 9372f10

Please sign in to comment.