Re: path to lilypond executable

2015-03-12 Thread Johan Vromans
On Thu, 12 Mar 2015 08:29:33 +0100
Urs Liska u...@openlilylib.org wrote:

 Am 12.03.2015 um 01:14 schrieb Mattes:
  Hmm,  are you looking for the path to the current lilypond executable
  or the current lilypond input file?
  For the first '(car (command-line))'  might be all you need.
 
 Yes, this is what I'm looking for, thank you.

Please be aware that on vanilla *ix systems this only works if the program
is executed via a PATH search.

E.g., if lilypond is in /usr/bin:

  cd /tmp
  lilypond   -- /usr/bin/lilypond
  cd /usr/bin
  ./lilypond   -- ./lilypond

-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread and...@andis59.se

On 2015-03-12 08:29, Urs Liska wrote:



Could anybody please tell me what

\version 2.18.2

#(display (car (command-line)))

displays on Windows (i.e. how the string is formatted)?


Using Frescobaldi

C:\lilypond-2-18-2-1\usr\bin\lilypond-windows.exe

// Anders

--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread Urs Liska

Am 12.03.2015 um 08:58 schrieb and...@andis59.se:

On 2015-03-12 08:29, Urs Liska wrote:



Could anybody please tell me what

\version 2.18.2

#(display (car (command-line)))

displays on Windows (i.e. how the string is formatted)?


Using Frescobaldi

C:\lilypond-2-18-2-1\usr\bin\lilypond-windows.exe



Thanks. Fortunately the respected result :-)

Urs


// Anders




--
Urs Liska
www.openlilylib.org

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread Urs Liska

Am 12.03.2015 um 09:11 schrieb Johan Vromans:

On Thu, 12 Mar 2015 08:29:33 +0100
Urs Liska u...@openlilylib.org wrote:


Am 12.03.2015 um 01:14 schrieb Mattes:

Hmm,  are you looking for the path to the current lilypond executable
or the current lilypond input file?
For the first '(car (command-line))'  might be all you need.


Yes, this is what I'm looking for, thank you.


Please be aware that on vanilla *ix systems this only works if the program
is executed via a PATH search.

E.g., if lilypond is in /usr/bin:

   cd /tmp
   lilypond   -- /usr/bin/lilypond
   cd /usr/bin
   ./lilypond   -- ./lilypond



OK, this means if the result points to in the current dir then I 
should prepend it with the current dir (which is easily possible with 
the tools I already have).


But I couldn't verify this actually.
I have a binary release (on Debian), installed through the install 
script. The executable is in ~/lilypond/usr/bin/lilypond (where the 
lilypond path is actually a symlink).


I get
= /home/uliska/lilypond/usr/bin/lilypond
with each of the following:

cd ~
lilypond test-script.ly
cd ~/bin
lilypond test-script.ly
cd ~/lilypond/usr/bin
lilypond test-script.ly

I'm happy that the result points to the actual lily executable and not 
to the wrapper script in ~/bin.
I don't have a package installation, so I don't know if that would 
return different reults.

Could someone please try this out for me?

Thank you
Urs



-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user




--
Urs Liska
www.openlilylib.org

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread Noeck
Hi Urs,

 I get
 = /home/uliska/lilypond/usr/bin/lilypond
 with each of the following:
 
 cd ~
 lilypond test-script.ly
 cd ~/bin
 lilypond test-script.ly
 cd ~/lilypond/usr/bin
 lilypond test-script.ly

The difference was whether you use path search or not:
lilypond (execute it wherever it is found)
or
./lilypond (execute this file here)

so this should make a difference:
cd ~/lilypond/usr/bin
./lilypond test-script.ly

Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread Wilbert Berendsen
Op Thu, 12 Mar 2015 09:11:33 +0100
Johan Vromans jvrom...@squirrel.nl schreef:

 Please be aware that on vanilla *ix systems this only works if the
 program is executed via a PATH search.
 
 E.g., if lilypond is in /usr/bin:
 
   cd /tmp
   lilypond   -- /usr/bin/lilypond
   cd /usr/bin
   ./lilypond   -- ./lilypond

If I run simply lilypond, (car (command-line)) also just yields
'lilypond'. (while lilypond resides in /usr/local/bin on my system)

You could read PATH of course and decude where lilypond is found.

But you could always ask LilyPond for its datadir, it always returns
the absolute path to the ly, svg, ps, scm etc files.

#(display (ly:get-option 'datadir))



-- 
Wilbert Berendsen
(http://www.wilbertberendsen.nl)


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread Urs Liska

Am 12.03.2015 11:40, schrieb Wilbert Berendsen:

But you could always ask LilyPond for its datadir, it always returns
the absolute path to the ly, svg, ps, scm etc files.

#(display (ly:get-option 'datadir))

Thank you very much, this is even closer to what I really want, namely 
the fonts dir, which is inside that :-)


Best
Urs

--
Urs Liska
u...@openlilylib.org


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread Urs Liska

Am 12.03.2015 15:38, schrieb Noeck:

I assume python has a function abspath or similar.

os.path.abspath


Yes, but I'm looking for a Scheme solution (which I now have).

--
Urs Liska
u...@openlilylib.org


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread Johan Vromans
On Thu, 12 Mar 2015 12:30:15 +0100
Urs Liska u...@openlilylib.org wrote:

 Am 12.03.2015 11:40, schrieb Wilbert Berendsen:
  But you could always ask LilyPond for its datadir, it always returns
  the absolute path to the ly, svg, ps, scm etc files.
 
  #(display (ly:get-option 'datadir))
 
 Thank you very much, this is even closer to what I really want, namely 
 the fonts dir, which is inside that :-)

This is a reminder to all of us that it is usually best to ask what you are
looking for :) .

-- Joahn

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread Johan Vromans
On Thu, 12 Mar 2015 10:38:20 +0100
Urs Liska u...@openlilylib.org wrote:

 OK, this means if the result points to in the current dir then I 
 should prepend it with the current dir (which is easily possible with 
 the tools I already have).

To be more precise: when the result is not an absolute path name (i.e.,
does not start with a / ) then it must be resolved from the perspective of
the current directory. I assume python has a function abspath or similar.

 I get
 = /home/uliska/lilypond/usr/bin/lilypond
 with each of the following:
 
 cd ~
 lilypond test-script.ly
 cd ~/bin
 lilypond test-script.ly
 cd ~/lilypond/usr/bin
 lilypond test-script.ly

You probably do not have . in your PATH, or it does not precede
/home/uliska/lilypond/usr/bin/. Try e.g.

env PATH=.:$PATH lilypond test-script.ly

-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread Noeck
 I assume python has a function abspath or similar.
os.path.abspath

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread Urs Liska



Am 12.03.2015 um 10:59 schrieb Noeck:

Hi Urs,


I get
= /home/uliska/lilypond/usr/bin/lilypond
with each of the following:

cd ~
lilypond test-script.ly
cd ~/bin
lilypond test-script.ly
cd ~/lilypond/usr/bin
lilypond test-script.ly

The difference was whether you use path search or not:
lilypond (execute it wherever it is found)
or
./lilypond (execute this file here)

so this should make a difference:
cd ~/lilypond/usr/bin
./lilypond test-script.ly


Ah, now I see.
Yes, it does make a difference:

GNU LilyPond 2.19.16
warning: not relocating, no 2.19.16/ or current/ found under 
/shared/software/lilyponds/2.19.16/usr/bin/share/lilypond/

ERROR: In procedure primitive-load-path:
ERROR: Unable to find file lily.scm in load path

which is due to the load script that doesn't set the paths when the 
executable is done directly.


when I run this from ~/bin (i.e. locally calling the wrapper script) 
everything's fine again because the wrapper script sets the actual path 
to the executable.


So it seems I don't have to consider this as an issue.

Thanks for the feedback
Urs


Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-12 Thread Urs Liska



Am 12.03.2015 um 01:14 schrieb Mattes:
  
Am Mittwoch, 11. März 2015 21:29 CET, Urs Liska u...@openlilylib.org schrieb:
  

Sorry, but I don't seem to be able to find the right search terms ...

How would I retrieve the path to the currently executed LilyPond from
Scheme?

Hmm,  are you looking for the path to the current lilypond executable or the
current lilypond input file?
For the first '(car (command-line))'  might be all you need.

  HTH Ralf Mattes


Yes, this is what I'm looking for, thank you.

Could anybody please tell me what

\version 2.18.2

#(display (car (command-line)))

displays on Windows (i.e. how the string is formatted)?

Thanks
Urs




TIA
Urs

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
  
  
  
  






___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


path to lilypond executable

2015-03-11 Thread Urs Liska

Sorry, but I don't seem to be able to find the right search terms ...

How would I retrieve the path to the currently executed LilyPond from 
Scheme?


TIA
Urs

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable

2015-03-11 Thread Mattes
 
Am Mittwoch, 11. März 2015 21:29 CET, Urs Liska u...@openlilylib.org schrieb: 
 
 Sorry, but I don't seem to be able to find the right search terms ...
 
 How would I retrieve the path to the currently executed LilyPond from 
 Scheme?

Hmm,  are you looking for the path to the current lilypond executable or the
current lilypond input file?
For the first '(car (command-line))'  might be all you need.

 HTH Ralf Mattes

 TIA
 Urs
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 
 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: path to lilypond executable?

2002-09-29 Thread Jan Nieuwenhuizen

Didier LAIREZ [EMAIL PROTECTED] writes:

 I have installed lilypond 1.6.0-2 on my MAC under OSX 10.1.5. Apparently the
 installation succeeded but the following message appears when I try to run
 Lylipond. Can you help me?

Maybe...

 [localhost:~] didierla% /sw/bin/ly2dvi -P /documents/muslyli/test1.ly

 Running LilyPond...
 zsh: command not found: lilypond

It looks like you do no have /sw/bin in your path.  Try:

PATH=/sw/bin:$PATH
ly2dvi /documents/muslyli/test1.ly

Btw: this is something that has been bothering me.  I think that
ly2dvi (and lilypond-book etc) should run the lilypond that belongs to
them, not the one that just so happens to be first in the path.

Jan.

-- 
Jan Nieuwenhuizen [EMAIL PROTECTED] | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: path to lilypond executable?

2002-09-29 Thread Jan Nieuwenhuizen

Didier LAIREZ [EMAIL PROTECTED] writes:

[cc list]
 Thank you! it is running now! Unfortunately the dvi output is not yet
 correct. May be it's now a latex problem.

How did you install lilypond, did you use fink?  Did you install
fink's tex package?  Did you log out after installing it?  You should
source the file lilypond-profile, maybe in /sw/etc/lilypond-profile
(or lilypond-login depending on your shell).

Jan.

-- 
Jan Nieuwenhuizen [EMAIL PROTECTED] | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user