+if ($options{git_mode}) {
+ my $base_dir = dirname(File::Spec->rel2abs(dirname(__FILE__)));
+ $options{cgi_bin} = "$base_dir/cgi" unless defined $options{cgi_bin};
+ $options{css} = "$base_dir/html/bugs.css" unless defined $options{css};
+ $options{template_dir} = "$base_dir/templates";
+ $options{base_dir} = $base_dir;
+ eval "use lib '$options{base_dir}'";
+} else {
+ $options{cgi_bin} = '/var/lib/debbugs/www/cgi';
+ $options{css} = '/var/lib/debbugs/www/bugs.css';
+ $options{template_dir} = "/usr/share/debbugs/templates";
+}
+
+eval "use Debbugs::Common qw(checkpid lockpid get_hashname)";
+eval "use Debbugs::Mail qw(get_addresses)";
+