Commit 6175150f authored by Tristan Gingold's avatar Tristan Gingold

module.py: minor refactoring (simplify code).

parent 07087474
...@@ -230,12 +230,11 @@ class Module(object): ...@@ -230,12 +230,11 @@ class Module(object):
def _get_fetchto(self): def _get_fetchto(self):
"""Calculate the fetchto folder""" """Calculate the fetchto folder"""
if ("fetchto" in self.manifest_dict and fetchto = self.manifest_dict.get('fetchto')
self.manifest_dict["fetchto"] is not None): if fetchto is None:
fetchto = path_mod.rel2abs(self.manifest_dict["fetchto"],
self.path)
else:
fetchto = self.fetchto() fetchto = self.fetchto()
else:
fetchto = path_mod.rel2abs(fetchto, self.path)
return fetchto return fetchto
def _process_manifest_modules(self): def _process_manifest_modules(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment