Have you tried to call file2.class_of_file2.funcl
????????
Let me know how it went
Regards
Alberto
![]()
Gaucho
>From: pxlpluker <[EMAIL PROTECTED]> >To:
[email protected] >Subject: [Tutor] i need to see a var from any where in my app - im clueless >Date: Wed, 13 Apr 2005 16:19:05 -0400 > > i have read the book and searched the group too >---------------------------------------------- >im not gettin it. >i want to read a global (OPTIONS) from file1 from a class method >(func1) in file2 >but i cant see the OPTION from func1 > > >---------------------------------------------- >#file1.py >import file2 >import sys > >OPTION = sys.argv[1:] >pass >a=global2.class1() >a.func1() > >#file2.py >import __main__ >pass >class class1: >. def func1(self): >. pass >-------------------------------------------
>_______________________________________________ >Tutor maillist -
[email protected] >http://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor