[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Where can I get the module MyUtils?

Python_Doctor

2/16/2008 5:59:00 AM

I inherited a piece of python code which imports "MyUtils" i.e. it has
a line:

import MyUtils

When I execute the code I get:

ImportError: No module named MyUtils

I assume the code is looking for another module called MyUtils.py. Is
this a standard Python module? Where can I download this module from?

Many thanks

Monty


1 Answer

Diez B. Roggisch

2/16/2008 10:55:00 AM

0

Python_Doctor schrieb:
> I inherited a piece of python code which imports "MyUtils" i.e. it has
> a line:
>
> import MyUtils
>
> When I execute the code I get:
>
> ImportError: No module named MyUtils
>
> I assume the code is looking for another module called MyUtils.py. Is
> this a standard Python module? Where can I download this module from?

How large are the chances that something called "MyUtils" is a
standard-module? And if it were - you wouldn't miss it, wouldn't you?

I suggest you ask the one you inherited the code from - it's mosp
probably his/hers.

Diez