[chronojump] chronojumpImporter uses fullpath on Path.GetTempFileName, fix windows ~ path problems calling to pyt
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] chronojumpImporter uses fullpath on Path.GetTempFileName, fix windows ~ path problems calling to pyt
- Date: Tue, 30 Nov 2021 12:49:36 +0000 (UTC)
commit fe0ce35edc957873f2fc1db186a7002aa6a5e769
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Nov 30 13:48:13 2021 +0100
chronojumpImporter uses fullpath on Path.GetTempFileName, fix windows ~ path problems calling to python
src/chronojumpImporter.cs | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/chronojumpImporter.cs b/src/chronojumpImporter.cs
index 3a75da570..9d54de07c 100644
--- a/src/chronojumpImporter.cs
+++ b/src/chronojumpImporter.cs
@@ -178,6 +178,10 @@ LogB.Information("import H ");
MessageToPulsebar = "Preparing database";
string temporarySourceFile = Path.GetTempFileName ();
+ LogB.Information("temporarySourceFile without GetFullPath: " + temporarySourceFile);
+ temporarySourceFile = Path.GetFullPath(temporarySourceFile);
+ LogB.Information("temporarySourceFile after GetFullPath: " + temporarySourceFile);
+
File.Copy (sourceFile, temporarySourceFile, true);
Result sourceDatabaseVersion = getDatabaseVersionFromFile (temporarySourceFile);
@@ -210,6 +214,7 @@ LogB.Information("import I ");
LogB.Debug ("chronojump-importer version after update: ", versionAfterUpdate);
}
+LogB.Information("import J ");
MessageToPulsebar = "Starting import";
List<string> parameters = new List<string> ();
parameters.Add ("--source");
@@ -237,10 +242,12 @@ LogB.Information("import I ");
else
parameters.Add ("NONE");
+LogB.Information("import K ");
Result result = executeChronojumpImporter (parameters, pythonVersion);
MessageToPulsebar = "Done!";
File.Delete (temporarySourceFile);
+LogB.Information("import L ");
return result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]