Skip to content

Commit

Permalink
don't try to require a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Jan 27, 2013
1 parent 5ed0ea0 commit b998218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/require.c
Expand Up @@ -28,7 +28,7 @@ resolve_require_path(sl_vm_t* vm, char* path)
continue;
}

if(sl_file_exists(vm, (char*)spath->buff)) {
if(sl_file_type(vm, (char*)spath->buff) == SL_FT_FILE) {
return spath;
}
}
Expand Down

0 comments on commit b998218

Please sign in to comment.