comparison sat_frontends/jp/common.py @ 3046:d9f328374473

jp: dark and light theme: - `background` setting can now be used in sat.conf to indicate if the terminal use a `dark` or a `light` colour - if `background` is not set or set to `auto`, the background colour is autodetected - Jp.get_config (or CommandBase.get_config) method can now be used to retrieve a setting
author Goffi <goffi@goffi.org>
date Tue, 01 Oct 2019 22:49:10 +0200
parents fee60f17ebac
children 040ca99e25fe
comparison
equal deleted inserted replaced
3045:6af44ca3beac 3046:d9f328374473
124 argument. 124 argument.
125 This is done to raise error if a command needs metadata but forget the flag, 125 This is done to raise error if a command needs metadata but forget the flag,
126 and vice versa 126 and vice versa
127 """ 127 """
128 self.host = host 128 self.host = host
129 self.sat_conf = config.parseMainConf()
130 self.cat_dir = cat_dir 129 self.cat_dir = cat_dir
131 self.use_metadata = use_metadata 130 self.use_metadata = use_metadata
132 131
133 def secureUnlink(self, path): 132 def secureUnlink(self, path):
134 """Unlink given path after keeping it for a while 133 """Unlink given path after keeping it for a while