본문으로 바로가기

!include 1.0

category Tcl & Tk/확장 패키지 (Extension Package) 2025. 8. 26. 10:01

출처 : http://mini.net/tcl/3165

This package allows to define include paths, that are used by the command !include to source files.

The first found file in the include path will be sourced!

Syntax:

!include fileNamePattern
	sources the given file or the next matching file from inside the path

	fileNamePattern could be a path with glob pattern, a glob pattern or
    	simply a absolute path to a file that should be sourced

	if the fileNamePattern contains a glob pattern and if there are more 
	then one file, then an error will be thrown!

!path
	returns the defined path

!path append directory ?directory ...?
!path append {directory ?directory ...? ...
!path append varName ...
	extends the path to be searched by !include

	the different kind of calls above could be mixed! If a varname is
	given the contents of the variable are used to extend the path!

	if the directory is not existent or not readable an error is thrown!

!path delete directory ?directory ...?
!path delete {directory ?directory ...? ...
!path delete varName ...
	deletes the directories from the path
    
	the given directories could be glob pattern

!reset
	resets the path definition to the current directory and returns the
	resetted path

!include.zip
0.00MB

 

'Tcl & Tk > 확장 패키지 (Extension Package)' 카테고리의 다른 글

AtExit 1.0  (0) 2025.08.26
BigFloat for Tcl 1.1b1  (0) 2025.08.26
e4Graph 1.0a11  (0) 2025.08.26
memchan 2.3  (0) 2025.08.26
VecTcl 0.3  (0) 2025.08.19