Page 1 of 1

Silly python question

Posted: Thu Aug 02, 2012 8:44 pm
by saleem145
Hello,

One quick question -- I have two python scripts that use the same function. I want to factor the code and put these into a seperate file, say Common.py. In each of the files I include a statement

from Common import *

When I run unopkg add I get the following error....

ERROR: Couldn't load file...for reason type Common.* is unknown

Thanks,

Saleem

Re: Silly python question

Posted: Thu Aug 02, 2012 11:32 pm
by karolus
Hello

Code: Select all

from common import myfunction
whats the Problem?
Karo

Re: Silly python question

Posted: Fri Aug 03, 2012 12:14 am
by saleem145
unopkg complains...

Re: Silly python question

Posted: Fri Aug 03, 2012 2:55 am
by hanya