Bug found by:
Submitted by:
Requested by:
Reviewed by:
Approved by:
Obtained from:
saveFile $selectedFile
}
+
+
+#
+# Read config files, the first one found: .imunesrc, $HOME/.imunesrc
+#
+# list of exec_hosts
+# Options / variables:
+# remote_exec
+# 0 - for local execution on FreeBSD,
+# 1 - IMUNES GUI is on remote (even if exec_host=localhost)
+# editor_only
+#
+proc readConfigFile {} {
+ global exec_hosts remote_exec editor_only
+ if { [file exists ".imunesrc"] } {
+ source ".imunesrc"
+ } else {
+ if { [catch {$env(HOME)} home] } {
+ # not running on UNIX
+ } else {
+ if { [file exists "$home/.imunesrc"] } {
+ source "$home/.imunesrc"
+ }
+ }
+ }
+}
+
+