Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check execution file method optimization
Use os.pathsep instead of the hard coded path separator ':'. os.pathsep represents the path separator for the current operating system . Use os. path. isfile() instead of os. path. exists() to check if the given path is a file. This can avoid misjudging the directory as an executable file. Signed-off-by: wulei01 <[email protected]>
- Loading branch information