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):
self.manifest_dict["modules"]["local"])
local_mods = []
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)
local_mods.append(self.pool.new_module(parent=self,
url=path,
......
......@@ -85,11 +85,6 @@ class ModuleConfig(object):
def _check_filepath(self, filepath):
"""Check the provided filepath against several conditions"""
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)
if not os.path.exists(filepath):
logging.error(
......
......@@ -107,9 +107,6 @@ class Module(ModuleContent):
include_dirs.extend(dir_list)
# Analyze included dirs and report if any issue is found
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_):
logging.warning(self.path +
" 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