save the full path to the setup file
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 6 Aug 2008 00:11:23 +0000 (20:11 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 6 Aug 2008 00:11:23 +0000 (20:11 -0400)
IkiWiki/Setup.pm

index a34515f2148a2e8619ac70c3e1844086c20bfab3..e014a2a10a5e59c1ce4f1285a747e698f390d34f 100644 (file)
@@ -8,9 +8,11 @@ use warnings;
 use strict;
 use IkiWiki;
 use open qw{:utf8 :std};
+use File::Spec;
 
 sub load ($) { # {{{
        my $setup=IkiWiki::possibly_foolish_untaint(shift);
+       $config{setupfile}=File::Spec->rel2abs($config{setup});
        delete $config{setup};
        #translators: The first parameter is a filename, and the second
        #translators: is a (probably not translated) error message.