Skip to content

Commit

Permalink
Fixes Issue #133
Browse files Browse the repository at this point in the history
Also fixes a bug with DOS paths when looking for the aTRAM/lib path.
  • Loading branch information
daisieh committed Apr 8, 2014
1 parent 27e2d8a commit 0d85a03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Configuration.pm
Expand Up @@ -34,10 +34,11 @@ sub initialize {
}

# find the lib path in @INC:
my $libpath = File::Spec->catfile("aTRAM", "lib");
foreach my $path (@INC) {
$path = realpath ($path);
if ($path =~ /$libpath/) {
$path = File::Spec->canonpath($path);
$path =~ s/\\/\//g;
if ($path =~ /TRAM.*lib/) {
$config_file = File::Spec->catfile($path, "config.txt");
$assembler_dir = File::Spec->catdir($path, "Assembler");
last;
Expand Down

0 comments on commit 0d85a03

Please sign in to comment.