Merge pull request #2002 from mnaiman/fix_logging

Fixed setting working dir
This commit is contained in:
Kenneth Skovhede
2016-10-14 21:06:04 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ namespace Duplicati.CommandLine
//If we are on Windows, append the bundled "win-tools" programs to the search path
//We add it last, to allow the user to override with other versions
if (!Library.Utility.Utility.IsClientLinux)
if (Library.Utility.Utility.IsClientWindows)
{
string wintools = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "win-tools");
Environment.SetEnvironmentVariable("PATH",
+2 -1
View File
@@ -162,7 +162,7 @@ namespace Duplicati.Server
{
//If we are on Windows, append the bundled "win-tools" programs to the search path
//We add it last, to allow the user to override with other versions
if (!Library.Utility.Utility.IsClientLinux)
if (Library.Utility.Utility.IsClientWindows)
{
Environment.SetEnvironmentVariable("PATH",
Environment.GetEnvironmentVariable("PATH") +
@@ -257,6 +257,7 @@ namespace Duplicati.Server
{
//Portable mode uses a data folder in the application home dir
Environment.SetEnvironmentVariable(DATAFOLDER_ENV_NAME, System.IO.Path.Combine(StartupPath, "data"));
System.IO.Directory.SetCurrentDirectory(StartupPath);
}
else
{