include a file in a python program

bussiere maillist bussieremaillist at gmail.com
Wed Sep 8 01:37:57 CEST 2010


Thanks all for your response i will try out this week, you have give
me sufficient hint.
Thanks again.
Bussiere

On Mon, Sep 6, 2010 at 9:50 AM, Niklasro(.appspot) <niklasro at gmail.com> wrote:
> On Sep 5, 10:57 pm, bussiere bussiere <bussi... at gmail.com> wrote:
>> 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
>
> You can do it with tkinter to also enable GUI.
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list