comparison src/cagou/core/cagou_main.py @ 32:fdaf914e2729

minor docstring fix
author Goffi <goffi@goffi.org>
date Sun, 21 Aug 2016 17:49:14 +0200
parents 4f9e701d76b4
children c21d1be2e54c
comparison
equal deleted inserted replaced
31:4f9e701d76b4 32:fdaf914e2729
164 return CagouRootWidget(ProfileManager()) 164 return CagouRootWidget(ProfileManager())
165 165
166 def expand(self, path, *args, **kwargs): 166 def expand(self, path, *args, **kwargs):
167 """expand path and replace known values 167 """expand path and replace known values
168 168
169 useful in kv. Values which can be used:
170 - {media}: media dir
169 @param path(unicode): path to expand 171 @param path(unicode): path to expand
170 @param *args: additional arguments used in format 172 @param *args: additional arguments used in format
171 @param **kwargs: additional keyword arguments used in format 173 @param **kwargs: additional keyword arguments used in format
172 useful in kv. Values which can be used:
173 - {media}: media dir
174 """ 174 """
175 return os.path.expanduser(path).format(*args, media=self.host.media_dir, **kwargs) 175 return os.path.expanduser(path).format(*args, media=self.host.media_dir, **kwargs)
176 176
177 177
178 class Cagou(QuickApp): 178 class Cagou(QuickApp):