diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2005-12-21 12:28:51 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2005-12-21 12:28:51 +0000 |
commit | 75876a4c9bcdb0baab5c9f895fdd1e4daefcc263 (patch) | |
tree | a9d549340106eb5e0d9a4f859be315d6ead04213 /mpc.pl | |
parent | 7a4f7dcc42cb487f309036fbb53ff439392b701e (diff) | |
download | MPC-75876a4c9bcdb0baab5c9f895fdd1e4daefcc263.tar.gz |
ChangeLogTag: Wed Dec 21 06:28:04 2005 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'mpc.pl')
-rwxr-xr-x | mpc.pl | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |