mirror of
https://gitee.com/openharmony/third_party_spirv-tools
synced 2025-02-20 14:51:01 +00:00
Do nothing if trying to make the current dir
This commit is contained in:
parent
c3caa546a0
commit
654feb32f2
@ -45,6 +45,10 @@ def mkdir_p(directory):
|
||||
"""Make the directory, and all its ancestors as required. Any of the
|
||||
directories are allowed to already exist."""
|
||||
|
||||
if directory == "":
|
||||
# We're being asked to make the current directory.
|
||||
return
|
||||
|
||||
try:
|
||||
os.makedirs(directory)
|
||||
except OSError as e:
|
||||
|
Loading…
x
Reference in New Issue
Block a user