File: begin

package info (click to toggle)
opencascade 7.5.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 290,544 kB
  • sloc: cpp: 1,190,524; tcl: 15,703; cs: 5,173; java: 1,557; ansic: 1,174; sh: 901; xml: 699; perl: 54; makefile: 27
file content (41 lines) | stat: -rw-r--r-- 957 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# in tests expression "set AddToDocument ASSEMBLY_C_L" means creating assembly and initializing colors and layers
# and expression "set AddToDocument COLORS_LAYERS" means initializing colors and layers
#
if { [array get Draw_Groups "TOPOLOGY Feature commands"] == "" } {
    pload DCAF
    pload TOPTEST
    pload XDE
}

cpulimit 1000

set ErrorCode 0
##############
### ErrorCode means :
### 0 - Success
### 1 - Warning
### 2 - Error
###############

#if {[string compare [datadir] "."] == 0} { 
#  datadir [file dirname [info script]]/data
#}

if { [info exists imagedir] == 0 } {
   set imagedir .
}
if { [info exists test_image ] == 0 } {
   set test_image photo
}

#set WorkDirectory "$env(TmpDir)"
set WorkDirectory $imagedir

if {![file exists $WorkDirectory]} {
    catch {[file mkdir $WorkDirectory]}
} else {
    if {![file isdirectory $WorkDirectory]} {
	puts "The assigned work directory $WorkDirectory is not directory! Exit ..."
	exit
    }
}