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:
parent
b29788cae0
commit
c5256dcf70
@ -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]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user