diff tincan.py @ 56:f177756200be draft

Add standard config parameters.
author David Barts <n5jrn@me.com>
date Fri, 31 May 2019 18:52:55 -0700
parents 8e72dd62cc6a
children 935f8013f540
line wrap: on
line diff
--- a/tincan.py	Fri May 31 16:50:02 2019 -0700
+++ b/tincan.py	Fri May 31 18:52:55 2019 -0700
@@ -852,8 +852,11 @@
         sys.path.insert(1, os.path.abspath(lib))
         # Do what we gotta do
         self.app = TinCan()
-        self.app.config['tincan.fsroot'] = os.path.abspath(self.fsroot)
-        self.app.config['tincan.urlroot'] = self.urlroot
+        config = self.app.config
+        config['tincan.fsroot'] = os.path.abspath(self.fsroot)
+        config['tincan.urlroot'] = self.urlroot
+        config['tincan.logger'] = self.logger
+        config['tincan.encoding'] = self.encoding
         self._launch([])
         return self