Menu

[r3]: / cmp / TkCon / ITkCon.tcl  Maximize  Restore  History

Download this file

55 lines (45 with data), 1.2 kB

 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
42
43
44
45
46
47
48
49
50
51
52
##
## Compiler2 - ITkCon
##
## (C) IPN - Ingenieurbuero fuer Praezisionsnumerik
##
## Dipl.-Ing. Andreas Otto
## Ulmenstrasse 3
## D-34289 Zierenberg
## mailto:aotto@t-online.de
## http://tclcompiler.sourceforge.net
##
## Alle Rechte vorbehalten
##
package require StdLib
package require Interface
package require System
PkgProvide ITkCon
##
## -----------------------------------------------------------------
##
namespace eval ::ITkCon {
set env(TK_CON_RCFILE) [ ::Env::Local .tkconrc ]
set env(TK_CON_COMMAND) [ ::Env::Local .tkcon.cmd ]
set env(TK_CON_LOCAL) [ file join [ ::System::HOME ] .tkcon.cmd ]
set env(TK_CON_LIBRARY) ""
set env(TK_CON_ARGS) ""
}
proc ::ITkCon::Exec { Args } {
variable EXEC
::Env::Set TK_CON_ARGS $Args
::StdLib::Push CHANNEL DEFAULT ERROR PUTS
if {[info exists ::tk_version]} {
package require TkCon
} else {
set FH [ ::IWish::Open [list package TkCon] ]
while {![eof $FH]} { puts [gets $FH] }
::StdLib::Close $FH
}
::StdLib::Pop CHANNEL ERROR
}
if {[ info exists CCT_PACKAGE ] && $CCT_PACKAGE == "ITkCon"} {
if {[catch {::ITkCon::Exec ""} ERR]} {
puts stderr $ERR
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.