Commit 6175150f authored by Tristan Gingold's avatar Tristan Gingold minor refactoring (simplify code).

parent 07087474
......@@ -230,12 +230,11 @@ class Module(object):
def _get_fetchto(self):
"""Calculate the fetchto folder"""
if ("fetchto" in self.manifest_dict and
self.manifest_dict["fetchto"] is not None):
fetchto = path_mod.rel2abs(self.manifest_dict["fetchto"],
fetchto = self.manifest_dict.get('fetchto')
if fetchto is None:
fetchto = self.fetchto()
fetchto = path_mod.rel2abs(fetchto, self.path)
return fetchto
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