[wxPython-users] Pallavi 0.5: Text editor utilizing wxPython
Dusty Phillips
buchuki at gmail.com
Sun Sep 2 22:16:45 PDT 2007
On 02/09/07, Diego Jacobi <jacobidiego at gmail.com> wrote:
> You should autodetect Python path on windows.
In all honesty, I don't know how to do that from inside the installer.
I'll look into it for the next release. This is indeed done
automatically if you use the setup.py in a source release, although it
seems under Windows you have to run the installer twice.
> 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 = 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.
You're right, you should have been getting that polite error instead
of the exception. I don't think the indentation is the problem though;
I'll look into this for the next release too. I'm glad you got it
working in the meantime.
The issue here is that I have very little experience deploying Python
apps on Windows. The last program I released for Windows was written
in Visual Basic five. ;-)
Dusty
More information about the wxpython-users
mailing list