[buildcore] Fix pybb mkdir
This commit is contained in:
parent
b7f726f4fd
commit
ff5b7577a4
1
deps/buildcore/base.mk
vendored
1
deps/buildcore/base.mk
vendored
@ -137,7 +137,6 @@ endif
|
|||||||
.PHONY: conan
|
.PHONY: conan
|
||||||
conan:
|
conan:
|
||||||
${ENV_RUN} ${PYBB} conan-install ${PROJECT_NAME}
|
${ENV_RUN} ${PYBB} conan-install ${PROJECT_NAME}
|
||||||
#@mkdir -p .conanbuild && cd .conanbuild && conan install ../ --build=missing -pr=${PROJECT_NAME}
|
|
||||||
endif # USE_VCPKG ###############################################
|
endif # USE_VCPKG ###############################################
|
||||||
|
|
||||||
.PHONY: configure-xcode
|
.PHONY: configure-xcode
|
||||||
|
12
deps/buildcore/scripts/pybb.py
vendored
12
deps/buildcore/scripts/pybb.py
vendored
@ -31,9 +31,15 @@ def cat(paths: str) -> int:
|
|||||||
|
|
||||||
|
|
||||||
def mkdir(path: str) -> int:
|
def mkdir(path: str) -> int:
|
||||||
if not os.path.exists(path) and os.path.isdir(path):
|
if not os.path.exists(path):
|
||||||
os.mkdir(path)
|
try:
|
||||||
return 0
|
os.mkdir(path)
|
||||||
|
except:
|
||||||
|
return 1
|
||||||
|
return 0
|
||||||
|
if os.path.isdir(path):
|
||||||
|
return 0
|
||||||
|
return 1
|
||||||
|
|
||||||
|
|
||||||
# this exists because Windows is utterly incapable of providing a proper rm -rf
|
# this exists because Windows is utterly incapable of providing a proper rm -rf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user