mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Avoid adding CASROOT to CSF_TestDataPath which leads to long time spent unnecessarily by locate_data_file
This commit is contained in:
parent
dc5bdbfc0c
commit
b432670a77
@ -27,8 +27,7 @@ if {[array get env os_type] != ""} {
|
||||
set os $env(os_type)
|
||||
}
|
||||
|
||||
if { [regexp "indows" $os ] == 1 } {
|
||||
set env(CSF_TestDataPath) "$env(CSF_TestDataPath);$env(CASROOT)"
|
||||
if { [regexp "indows" $os] } {
|
||||
if {[regexp -nocase {jdk} $env(PATH)] || [regexp -nocase {java} $env(PATH)]} {
|
||||
set Java "java"
|
||||
} else {
|
||||
@ -36,7 +35,6 @@ if { [regexp "indows" $os ] == 1 } {
|
||||
}
|
||||
} else {
|
||||
catch {set Java $env(JAVAHOME)/bin/java}
|
||||
set env(CSF_TestDataPath) "$env(CSF_TestDataPath):$env(CASROOT)"
|
||||
}
|
||||
|
||||
set SchemaFile ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user