Commit 0d3e8ccf authored by Nicolas Chevillot's avatar Nicolas Chevillot

Removed error/warning on absolute paths

parent c4b5fced
...@@ -99,10 +99,6 @@ class ModuleContent(ModuleCore): ...@@ -99,10 +99,6 @@ class ModuleContent(ModuleCore):
self.manifest_dict["modules"]["local"]) self.manifest_dict["modules"]["local"])
local_mods = [] local_mods = []
for path in local_paths: for path in local_paths:
if path_mod.is_abs_path(path):
logging.error("Found an absolute path (" + path +
") in a manifest(" + self.path + ")")
quit(1)
path = path_mod.rel2abs(path, self.path) path = path_mod.rel2abs(path, self.path)
local_mods.append(self.pool.new_module(parent=self, local_mods.append(self.pool.new_module(parent=self,
url=path, url=path,
......
...@@ -85,11 +85,6 @@ class ModuleConfig(object): ...@@ -85,11 +85,6 @@ class ModuleConfig(object):
def _check_filepath(self, filepath): def _check_filepath(self, filepath):
"""Check the provided filepath against several conditions""" """Check the provided filepath against several conditions"""
if filepath: if filepath:
if path_mod.is_abs_path(filepath):
logging.warning(
"Specified path seems to be an absolute path: " +
filepath + "\nOmitting.")
return False
filepath = os.path.join(self.path, filepath) filepath = os.path.join(self.path, filepath)
if not os.path.exists(filepath): if not os.path.exists(filepath):
logging.error( logging.error(
......
...@@ -107,9 +107,6 @@ class Module(ModuleContent): ...@@ -107,9 +107,6 @@ class Module(ModuleContent):
include_dirs.extend(dir_list) include_dirs.extend(dir_list)
# Analyze included dirs and report if any issue is found # Analyze included dirs and report if any issue is found
for dir_ in include_dirs: for dir_ in include_dirs:
if path_mod.is_abs_path(dir_):
logging.warning("%s contains absolute path to an include "
"directory: %s", self.path, dir_)
if not os.path.exists(dir_): if not os.path.exists(dir_):
logging.warning(self.path + logging.warning(self.path +
" has an unexisting include directory: " + " has an unexisting include directory: " +
......
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