1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

Draw - Update DrawDefault script to handle missing directory cases #542

Fixed "Warning: could not find DRAW directory"
This commit is contained in:
Pasukhin Dmitry
2025-05-17 13:00:50 +01:00
committed by GitHub
parent b29788cae0
commit c5256dcf70

View File

@@ -28,6 +28,9 @@ if { [info exists env(DRAWHOME) ] } {
} else {
if { [info exists env(CASROOT) ] } {
set dir [file join $env(CASROOT) src DrawResources]
if { ! [file isdirectory $dir] } {
set dir [file join $env(CASROOT) resources DrawResources]
}
} else {
puts "Warning: CASROOT is not defined, some features may not load correctly"
set dir [file dirname [info script]]