Fix incorrect outputDirectory when absolute path used
This commit is contained in:
parent
cbcbb7c1fe
commit
5d7584d2f2
|
|
@ -75,7 +75,11 @@ namespace PascalABCCompiler
|
|||
return false;
|
||||
}
|
||||
case "output":
|
||||
co.OutputFileName = value;
|
||||
co.OutputFileName = Path.GetFileName(value);
|
||||
if (Path.IsPathRooted(value))
|
||||
{
|
||||
co.OutputDirectory = Path.GetDirectoryName(value);
|
||||
}
|
||||
return true;
|
||||
default:
|
||||
Console.WriteLine("No such directive name: '{0}'", name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue