Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Allow passing in a relative path as an argument #2

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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