Ejemplo n.º 1
0
def pragmaRequire(ppt, line, result):
	"Includes a source file at most one time"
	filename = str(os.path.dirname(sys.argv[1])) + os.sep + line.expect("STRING").value
	line.expect("EOL")
	if type(filename)==str:
		global loadedfiles
		if filename not in loadedfiles:
			loadedfiles[filename]=1
			result.append(FE.parse_file(ppt,filename))
def pragmaRequire(ppt, line, result):
    "Includes a source file at most one time"
    filename = line.expect("STRING").value
    line.expect("EOL")
    if type(filename) == str:
        global loadedfiles
        if filename not in loadedfiles:
            loadedfiles[filename] = 1
            result.append(FE.parse_file(ppt, filename))
Ejemplo n.º 3
0
def pragmaRequire(ppt, line, result):
    "Includes a source file at most one time"
    filename = line.expect("STRING").value
    line.expect("EOL")
    if type(filename) == str:
        result.append(FE.parse_file(ppt, filename, True))
Ejemplo n.º 4
0
def pragmaInclude(ppt, line, result):
    "Includes a source file"
    filename = line.expect("STRING").value
    line.expect("EOL")
    if type(filename) == str:
        result.append(FE.parse_file(ppt, filename))
Ejemplo n.º 5
0
def pragmaRequire(ppt, line, result):
    "Includes a source file at most one time"
    filename = line.expect("STRING").value
    line.expect("EOL")
    if type(filename) == str:
        result.append(FE.parse_file(ppt, filename, True))
Ejemplo n.º 6
0
def pragmaInclude(ppt, line, result):
    "Includes a source file"
    filename = line.expect("STRING").value
    line.expect("EOL")
    if type(filename) == str:
        result.append(FE.parse_file(ppt, filename))
Ejemplo n.º 7
0
def pragmaInclude(ppt, line, result):
	"Includes a source file"
	filename = str(os.path.dirname(sys.argv[1])) + os.sep + line.expect("STRING").value
	line.expect("EOL")
	if type(filename)==str:	result.append(FE.parse_file(ppt,filename))