Diff

Differences From Artifact [ff8c61f8fa]:

To Artifact [df6717d86a]:


1
2
3
4
5
6







7
8
9
10
11
12
13
#! /usr/bin/env tclsh

# Abort if we cant read the tmpfile path from the environment
if {![info exists ::env(TMPFILE)]} {
	exit 0
}








set tmpfile $::env(TMPFILE)

vfs::zip::Mount $tmpfile $tmpfile

set fd [open [file join $tmpfile main.tcl]]
set data [read $fd]






>
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/env tclsh

# Abort if we cant read the tmpfile path from the environment
if {![info exists ::env(TMPFILE)]} {
	exit 0
}

# Abort this test if we don't have vfs::zip
if {[catch {
	package require vfs::zip
}]} {
	exit 0
}

set tmpfile $::env(TMPFILE)

vfs::zip::Mount $tmpfile $tmpfile

set fd [open [file join $tmpfile main.tcl]]
set data [read $fd]