[chronojump/chronojump-importer] Imports from the file to the correct file.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/chronojump-importer] Imports from the file to the correct file.
- Date: Tue, 13 Sep 2016 11:00:40 +0000 (UTC)
commit 39c9b49c4a4421e464dc86085829f2f19c93f4a0
Author: Carles Pina i Estany <carles pina cat>
Date: Tue Sep 13 12:00:20 2016 +0100
Imports from the file to the correct file.
src/gui/chronojump.cs | 2 +-
src/sqlite/main.cs | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index e2d5768..e6b2bac 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -2621,7 +2621,7 @@ public partial class ChronoJumpWindow
string pythonInterpreter = "/usr/bin/python3";
string importerPath =
"/home/carles/git/chronojump/src/chronojump-importer/chronojump_importer.py";
string source_filename = databasePath;
- string destination_filename = "/home/carles/.local/share/Chronojump/database/chronojump.db";
+ string destination_filename = Sqlite.DatabaseFilePath;
string session = Convert.ToString (sessionNumber);;
Process process = new Process();
diff --git a/src/sqlite/main.cs b/src/sqlite/main.cs
index b4e8442..63ab8e4 100644
--- a/src/sqlite/main.cs
+++ b/src/sqlite/main.cs
@@ -258,6 +258,14 @@ class Sqlite
}
+ public static string DatabaseFilePath()
+ {
+ get
+ {
+ return sqlFile;
+ }
+ }
+
//only create blank DB
public static void ConnectBlank()
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]