From c5256dcf70664d53b7907f78aa626cd6eb79fd7e Mon Sep 17 00:00:00 2001 From: Pasukhin Dmitry Date: Sat, 17 May 2025 13:00:50 +0100 Subject: [PATCH] Draw - Update DrawDefault script to handle missing directory cases #542 Fixed "Warning: could not find DRAW directory" --- resources/DrawResources/DrawDefault | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/DrawResources/DrawDefault b/resources/DrawResources/DrawDefault index 71b121a547..8f2a4b89c1 100755 --- a/resources/DrawResources/DrawDefault +++ b/resources/DrawResources/DrawDefault @@ -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]]