Put this somewhere at the top of the file together with all the other
rows that starts with "use":
Code:
--------------------
use File::Spec::Functions qw(:ALL);
--------------------
And then replace:
Code:
--------------------
my $path ||= Slim::Utils::OSDetect::dirsFor('prefs');
$path = $path . '\plugin\sugarcube.db';
--------------------
With:
Code:
--------------------
my $path ||= Slim::Utils::OSDetect::dirsFor('prefs');
$path = catfile($path,'plugin','sugarcube.db');
--------------------
--
erland
Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=87490
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix