thanks buddy for quick reply, as you've said i have added all variable properly in system variable now.
1) PYTHONPATH = C:\Python27 2) PYJSPATH = C:\Pyjama\bin;c:\Tried_03 as again build the file but that error is not get removed still On Thu, Mar 14, 2013 at 4:20 PM, Łukasz Mach <[email protected]> wrote: > 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 a topic in the > Google Groups "Pyjs.org Users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/** > topic/pyjs-users/-rCTjFlAqik/**unsubscribe?hl=en<https://groups.google.com/d/topic/pyjs-users/-rCTjFlAqik/unsubscribe?hl=en> > . > To unsubscribe from this group and all its topics, send an email to > pyjs-users+unsubscribe@**googlegroups.com<pyjs-users%[email protected]> > . > For more options, visit > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> > . > > > -- --- 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.
