bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lilypond Python on Windows


From: Sven Axelsson
Subject: Re: Lilypond Python on Windows
Date: Thu, 17 Nov 2005 09:25:59 +0100

On 17/11/05, Jan Nieuwenhuizen <address@hidden> wrote:
> Sven Axelsson writes:
>
> > but specifically it fails to load the struct module from the
> > lib-dynload folder.
>
> > Maybe all dynloaded modules fail, I haven't checked that much.
>
> Can you please do some more checking.  Do any other DLLs work, such as
> math, midi ?

OK, it looks like none of the standard modules from lib-dynload are
found. Testing with
import cPickle, datetime, math, md5, struct;
all fails with ImportError: No module named XXXX.

The midi module, which is in usr/bin works, however.

And this is because - all the modules are present in usr/bin as well,
but named XXX.so.exe. Renaming them to XXX.dll gets them working
again.

> > Perhaps it would be nice if the installer checked if there is an
> > existing Python installation on the computer before replacing the
> > file associations for .py files.
>
> That would be nice.

Ideally, Lilypond wouldn't change the file associations at all, but
rather use a wrapper to call the python executable directly when
needed.

Looking further in the usr/bin folder I see that all the Python
scripts are there with as well as withouth the .py extension. The two
files doesn't seem to be kept in synch though, e.g. lilypond-book and
lilypond-book.py are quite different.

This seems to go for Scheme files in usr/bin as well. I guess that the
extensionless files should be replaced with shell scripts that simply
forwards to the correct interpreter and file. Then we could have .bat
files that does the same under Windows.

--
Sven Axelsson




reply via email to

[Prev in Thread] Current Thread [Next in Thread]