puts "exec python" exec python "C:/the/full/filepath/python_script.py" puts "create tcl file" set fp [open "C:/the/full/filepath/file_tcl.txt" w+] puts $fp "Test from tcl" close $fp puts "tcl script finished" return 1
puts "exec python"
exec python "C:/the/full/filepath/python_script.py" puts "create tcl file" set fp [open "C:/the/full/filepath/file_tcl.txt" w+] puts $fp "Test from tcl" close $fp puts "tcl script finished" return 1
f = open("C:/the/full/filepath/file_python.txt", "w") f.write("Test from python") f.close()