[wxPython-users] Pallavi 0.5: Text editor utilizing wxPython

Diego Jacobi jacobidiego at gmail.com
Sun Sep 2 17:22:44 PDT 2007


You should autodetect Python path on windows.

siteconfig.py:
share =3D 'C:\\Python24\\share\\pallavi'

I dont have installed Python24 on C: and also, share dir was created on my
python directory.
changing the value of share your editor works.

  if not os.path.exists(config_dir):
    os.makedirs(config_dir + "/plugins")
    config_skeleton =3D os.path.join(siteconfig.share, "pallavi_config.py")
    if os.path.exists(config_skeleton):
      shutil.copy(config_skeleton, config_dir)
    else:
      print "The file pallavi_config.py does not exist in ", config_dir
      print "and I am unable to find the default configuration file."
      print "Please create a valid pallavi_config.py in ", config_dir
      sys.exit(1)

This code seems like is not being executed, maybe you should unindent the
config_skeleton part.

Cheers



2007/9/2, Dusty Phillips <buchuki at gmail.com>:
>
> > > I'm not certain if this is shameless advertising, selfless
> > > information, or legitimate promotion, but I thought members of this
> > > list would be interested to know that I have recently released a
> > > fully-featured, extensively customizable text editor that utilizes
> > > wxPython as its widget toolkit.
> >
> > I downloaded the exe installer for Windows and installed Pallavi, but
> > when I tried to run it I got the error message "No module named
> > pallavi_config". I'm on Windows XP SP2 and wxWidgets 2.8.4 and Python
> 2.4
> >
> >
> > E:\Python24\Lib\site-packages\pallavi>pallavi.py
> > Traceback (most recent call last):
> >    File "E:\Python24\Lib\site-packages\pallavi\pallavi.py", line 75, in
> ?
> >      RunPallavi(sys.argv[1:])
> >    File "E:\Python24\Lib\site-packages\pallavi\pallavi.py", line 56, in
> > RunPallav
> > i
> >      import pallavi_config
> > ImportError: No module named pallavi_config
> >
> > E:\Python24\Lib\site-packages\pallavi>
>
> The installer was set up for Python25 and is pointing the share
> directory at C:\Python25. I've released a second installer for
> Python24 under windows. I tested it briefly and fixed one bug where
> I'd used the Python 2.5 'any' function. Let me know how it works for
> you.
>
> I suspect this will also solve Diego's error.
>
> Dusty
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200709=
02/fa6c6dc4/attachment.htm


More information about the wxpython-users mailing list