On 14.03.2013 11:35, Swapnil Bhavekar wrote:
Hi Lukasz,

*
*
*1) C:\Pyjama\examples\Tried_02>c:\Pyjama\bin\pyjsbuild.bat Tried_02.py*
*
*
this is the way ( command ) i build files, it gives me
*
*
*Building : Tried_02*
*PYJSPATH : [*
*    C:\Pyjama\examples\Tried_02*
*    C:\Pyjama\library*
*    C:\Pyjama\addons*
*]*
*Built to : C:\Pyjama\examples\Tried_02\output*

but at the end when i open html files in browser it gives me this error
: *Tried_02 ImportError: No module named Tried_03.WCP, Tried_03.WCP in
context None *
*
*
2) No, i have not set PYJSPATH path variable, instead of it i have added
python & pyjama's path in Path variable in environment variables.

I have tried to add WCP module by using :

import os
import sys
#from Tried_03 import WCP
sys.path.append('C:\Tried_03')
import WCP

normal way because package import of python gives me some another

It's not normal way IMHO :).

You need to have your WCP module in your import path. For CPython it's PYTHONPATH env variable. For pyjsbuild it's PYJSPATH.

So, if I were you, I would add c:\Tried_03 to your PYJSPATH and import WCP in your code.

--
pozdrawiam

Łukasz Mach - [email protected]

--

--- You received this message because you are subscribed to the Google Groups "Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to