Re: [Qgis-user] custo module in python console

2015-10-08 Thread Alessandro Pasotti
Hi,

are you sure that you aren't importing the standard python test module?





Try renaming from test.py to mytest.py




2015-10-07 11:47 GMT+02:00 Luca Lanteri :

> Hi,
>
> I try to load a custom module in qgis python console but without success.
> I don't understand what I miss.
>
> I put my python module into project folder (file is named test.py)
>
> the module contain a function like this;
> def pr():
> print("hello")
>
> when from Python console I've imported the module with "import test" I
> didn' have any error and qgis find the module but I can't access to my
> custom functions.
>
> any hints ?
> Thank in advance
>
> Luca
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>



-- 
Alessandro Pasotti
w3:   www.itopen.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] custo module in python console

2015-10-07 Thread Luca Lanteri
Hi,

I try to load a custom module in qgis python console but without success.
I don't understand what I miss.

I put my python module into project folder (file is named test.py)

the module contain a function like this;
def pr():
print("hello")

when from Python console I've imported the module with "import test" I
didn' have any error and qgis find the module but I can't access to my
custom functions.

any hints ?
Thank in advance

Luca
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user