Login | Register
My pages Projects Community openCollabNet

Discussions > users > Importing a module

maxq
Discussion topic

Back to topic list

Importing a module

Author =?ISO-8859-1?Q?Rog=E9rio_Nibon?= <rogerionibon at gmail dot com>
Full name =?ISO-8859-1?Q?Rog=E9rio_Nibon?= <rogerionibon at gmail dot com>
Date 2005-10-04 14:36:05 PDT
Message Hi folks,

   In my first experience with Python and MaxQ, I created a new
standard script and MaxQ generated a code for one of my test
scenarios. I added some functions in this code and it worked well. Now
I want to put these functions in another file (.py) to call them from
the class generated by MaxQ (Cenario1.py). I created a module
"Format.py" with the functions in the same directory of "Cenario1.py".
In "Cenario1.py" I added a import: "import Format.py", but when I
tried to run my script I got the message: "ImportError: no module
named Format". Could anybody help me?

Thanks,
Rogério Nibon.

« Previous message in topic | 1 of 5 | Next message in topic »

Messages

Show all messages in topic

Importing a module =?ISO-8859-1?Q?Rog=E9rio_Nibon?= <rogerionibon at gmail dot com> =?ISO-8859-1?Q?Rog=E9rio_Nibon?= <rogerionibon at gmail dot com> 2005-10-04 14:36:05 PDT
     Re: [maxq-users] Importing a module oliverbock Oliver Bock 2005-10-04 15:28:21 PDT
         Re: [maxq-users] Importing a module jer_57 Jerry 2005-10-04 15:57:38 PDT
             Re: [maxq-users] Importing a module christophe blin <cblin at tennaxia dot com> christophe blin <cblin at tennaxia dot com> 2005-10-05 02:33:39 PDT
                 Re[2]: [maxq-users] Importing a module jer_57 Jerry 2005-10-05 05:55:31 PDT
Messages per page: