use XML::Parser;
use Env;
-my $HELM_CONFIGURATION_PREFIX = $ENV{"HELM_CONFIGURATION_PREFIX"};
+my $HELM_CONFIGURATION_DIR = $ENV{"HELM_CONFIGURATION_DIR"};
+my $DEFAULT_HELM_CONFIGURATION_DIR = @HELM_ETC_DIR@;
# this should be the only fixed constant
-if (defined ($HELM_CONFIGURATION_PREFIX) {
- $configuration_file =
- $HELM_CONFIGURATION_PREFIX."/etc/helm/configuration.xml";
+if (defined ($HELM_CONFIGURATION_DIR) {
+ $configuration_file = $HELM_CONFIGURATION_DIR."/configuration.xml";
+} else {
+ $configuration_file = $DEFAULT_HELM_CONFIGURATION_DIR."/configuration.xml";
}
$parser = new XML::Parser(Handlers => {Start => \&handle_start,