Subject: Re: [ecasound] ruby-ecasound was: [ecasound] pyecasound of ecasound 2.3.0 hanging
From: Jan Weil (Jan.Weil_AT_web.de)
Date: Wed Nov 26 2003 - 22:18:07 EET
Did you look at my code?
This one made me laugh when I revised it:
class File
def self::which(prog, path=ENV['PATH'])
path.split(File::PATH_SEPARATOR).each do |dir|
f = File::join(dir, "ecasound")
^^^^^^^^
if File::executable?(f) && ! File::directory?(f)
return f
end
end
end
end # File
While it's perfectly working for this purpose - well - if my bash did
so... :-)
Jan
Am 2003.11.26 20:29 schrieb(en) Kai Vehmanen:
[...]
> Great, seems to work fine on my machine with ruby-1.8.0!
This archive was generated by hypermail 2b28 : Wed Nov 26 2003 - 22:14:03 EET