[med-svn] r15867 - trunk/packages/gnuhealth/trunk/debian

Emilien Klein e2jk-guest at moszumanska.debian.org
Mon Jan 27 20:15:04 UTC 2014


Author: e2jk-guest
Date: 2014-01-27 20:15:03 +0000 (Mon, 27 Jan 2014)
New Revision: 15867

Modified:
   trunk/packages/gnuhealth/trunk/debian/gnuhealth-client.py
Log:
Update gnuhealth-client.py with new Tryton version and create the Tryton config directory if it doesn't exist


Modified: trunk/packages/gnuhealth/trunk/debian/gnuhealth-client.py
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/gnuhealth-client.py	2014-01-27 18:23:19 UTC (rev 15866)
+++ trunk/packages/gnuhealth/trunk/debian/gnuhealth-client.py	2014-01-27 20:15:03 UTC (rev 15867)
@@ -33,7 +33,7 @@
 
 if __name__ == "__main__":
     #TODO: detect installed version of Tryton automatically
-    tryton_version = "2.6"
+    tryton_version = "3.0"
     base_config_path = os.path.expanduser("~/.config/tryton/%s/" % tryton_version)
     config_file = os.path.join(base_config_path, "tryton.conf")
     default_config_file = "/etc/gnuhealth/gnuhealth-client.tryton.conf"
@@ -42,6 +42,9 @@
 
     # Check if there already is a config file
     if not os.path.isfile(config_file):
+        # Create the config directory if it doesn't exist
+        if not os.path.exists(base_config_path):
+            os.makedirs(base_config_path)
         # Copy the default config file
         shutil.copyfile(default_config_file, config_file)
         # Make sure permissions are set appropriately




More information about the debian-med-commit mailing list