On Apr 29, 2:18 am, zeo <[EMAIL PROTECTED]> wrote:
> Hi!
> I can't build the following code:
>
> class Foo:
> def __init__(self, val):
> self.val = val
>
> def main():
> f = Foo("success")
> print f.val
>
> if __name__=="__main__":
> main()
>
> NameError: global name 'Foo' is not defined
>
> Have I missed something or do I have to put Foo in Foo.py and import
> it?
It works for me... is your a PyInstaller-only problem or a Python
problem? Can you provide the full traceback?
--
Matteo Bertini
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---