[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: MusicXML converter: "ImportError: No module named musicxml"
From: |
Han-Wen Nienhuys |
Subject: |
Re: Fwd: MusicXML converter: "ImportError: No module named musicxml" |
Date: |
Wed, 05 Apr 2006 11:54:48 +0200 |
User-agent: |
Thunderbird 1.5 (X11/20060313) |
Gerhard G. Tooorges wrote:
Hello Han-Wen,
I work on Mac OS X 10.3.9.
Lilypond version 2.8.1-1 (vBuild from Fri Mar 31 01:38:24 2006).
try the attached patch,
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
LilyPond Software Design
-- Code for Music Notation
http://www.lilypond-design.com
*** musicxml2ly.py.~1.12.~ 2006-03-17 00:31:31.000000000 +0100
--- musicxml2ly.py 2006-04-05 11:53:20.000000000 +0200
***************
*** 23,28 ****
--- 23,36 ----
sys.path.insert (0, os.path.join (datadir, 'python'))
+ # dynamic relocation, for GUB binaries.
+ bindir = os.path.split (sys.argv[0])[0]
+
+ for prefix_component in ['share', 'lib']:
+ datadir = os.path.abspath (bindir + '/../%s/lilypond/current/python/' %
prefix_component)
+ sys.path.insert (0, datadir)
+
+
import musicxml
import musicexp