Make sure we are always working with complete paths.

This commit is contained in:
Lars Brubaker 2014-11-18 16:45:27 -08:00
parent 1bf63e3554
commit 820b3c0992
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
driverInstallerProcess.StartInfo.Arguments = Path.GetFullPath(fileName);
// Enter the executable to run, including the complete path
string printerDriverInstallerExePathAndFileName = Path.Combine(".", "InfInstaller.exe");
string printerDriverInstallerExePathAndFileName = Path.GetFullPath(Path.Combine(".", "InfInstaller.exe"));
driverInstallerProcess.StartInfo.CreateNoWindow = true;
driverInstallerProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;

View file

@ -262,7 +262,7 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
string[] fileNames = infFileNames.Split(',');
foreach (string fileName in fileNames)
{
string infPathAndFileToInstall = Path.Combine(ApplicationDataStorage.Instance.ApplicationStaticDataPath, "Drivers", Path.GetFileNameWithoutExtension(fileName), fileName);
string infPathAndFileToInstall = Path.GetFullPath(Path.Combine(ApplicationDataStorage.Instance.ApplicationStaticDataPath, "Drivers", Path.GetFileNameWithoutExtension(fileName), fileName));
switch (OsInformation.OperatingSystem)
{
case OSType.Windows: