We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ebfc08 commit 90ed14dCopy full SHA for 90ed14d
utils/swift_build_support/swift_build_support/arguments.py
@@ -93,7 +93,7 @@ def type_executable(string):
93
94
Convert it to absolute path.
95
"""
96
- if os.access(string, os.X_OK):
+ if os.path.isfile(string) and os.access(string, os.X_OK):
97
return os.path.abspath(string)
98
raise argparse.ArgumentTypeError(
99
"%r is not executable" % string)
0 commit comments