summaryrefslogtreecommitdiff
path: root/mpc.pl
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2005-12-21 12:28:51 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2005-12-21 12:28:51 +0000
commit75876a4c9bcdb0baab5c9f895fdd1e4daefcc263 (patch)
treea9d549340106eb5e0d9a4f859be315d6ead04213 /mpc.pl
parent7a4f7dcc42cb487f309036fbb53ff439392b701e (diff)
downloadMPC-75876a4c9bcdb0baab5c9f895fdd1e4daefcc263.tar.gz
ChangeLogTag: Wed Dec 21 06:28:04 2005 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'mpc.pl')
-rwxr-xr-xmpc.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/mpc.pl b/mpc.pl
index c7f7c30a..855690b1 100755
--- a/mpc.pl
+++ b/mpc.pl
@@ -13,12 +13,16 @@ eval '(exit $?0)' && eval 'exec perl -w -S $0 ${1+"$@"}'
# ******************************************************************
use strict;
-use Cwd;
use Config;
use FindBin;
+use File::Spec;
use File::Basename;
my($basePath) = $FindBin::Bin;
+if ($^O eq 'VMS') {
+ $basePath = File::Spec->rel2abs(dirname($0)) if ($basePath eq '');
+ $basePath = VMS::Filespec::unixify($basePath);
+}
unshift(@INC, $basePath . '/modules');
require MPC;