import stat
import string
import tempfile
+import commands
# Users of python modules should include this snippet
# and customize variables below.
datadir = os.environ['LILYPONDPREFIX']
while datadir[-1] == os.sep:
datadir= datadir[:-1]
-
+
+ datadir = os.path.join (datadir, "share/lilypond/current/")
+
sys.path.insert (0, os.path.join (datadir, 'python'))
# Customize these.
+ ' --formats=%s --backend eps ' % formats
if process_cmd:
- process_cmd += string.join ([(' -I %s' % p)
+ process_cmd += string.join ([(' -I %s' % commands.mkarg (p))
for p in include_path])
ly.identify (sys.stderr)