include a file in a python program

bussiere bussiere bussiere at gmail.com
Sun Sep 5 18:57:30 EDT 2010


i've got a python.txt that contain python and it must stay as it (python.txt)

how can i include it in my program ?
import python.txt doesn't work
is there a way :
a) to make an include("python.txt")
b) tell him to treat .txt as .py file that i can make an import python ?
i'am using python3
Regards
Bussiere
fan of torchwood
Google Fan boy



More information about the Python-list mailing list