1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-21 10:55:33 +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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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