[DEBUG] correct init

This commit is contained in:
Edouard DUPIN 2017-04-13 23:31:29 +02:00
parent a605da450f
commit e1a8280e01
3 changed files with 6 additions and 6 deletions

View File

@ -34,8 +34,8 @@ class Config():
config_property = tools.file_read_data(env.get_island_path_config()) config_property = tools.file_read_data(env.get_island_path_config())
element_config = config_property.split("\n") element_config = config_property.split("\n")
for line in element_config: for line in element_config:
if line[0] == "#" \ if len(line) == 0 \
or len(line) == 0: or line[0] == "#":
# simple comment line ==> pass # simple comment line ==> pass
pass pass
elif line[:5] == "repo=": elif line[:5] == "repo=":

View File

@ -30,7 +30,6 @@ def get_system_base_name():
island_root_path = os.path.join(os.getcwd()) island_root_path = os.path.join(os.getcwd())
if os.path.exists(os.path.join(island_root_path, "." + get_system_base_name())) == True: if os.path.exists(os.path.join(island_root_path, "." + get_system_base_name())) == True:
# all is good ... # all is good ...
debug.error("plop: " + os.path.join(island_root_path, "." + get_system_base_name()))
pass pass
elif os.path.exists(os.path.join(island_root_path, "..", "." + get_system_base_name())) == True: elif os.path.exists(os.path.join(island_root_path, "..", "." + get_system_base_name())) == True:
island_root_path = os.path.join(os.getcwd(), "..") island_root_path = os.path.join(os.getcwd(), "..")
@ -45,7 +44,8 @@ elif os.path.exists(os.path.join(island_root_path, "..", "..", "..", "..", "." +
elif os.path.exists(os.path.join(island_root_path, "..", "..", "..", "..", "..", "." + get_system_base_name())) == True: elif os.path.exists(os.path.join(island_root_path, "..", "..", "..", "..", "..", "." + get_system_base_name())) == True:
island_root_path = os.path.join(os.getcwd(), "..", "..", "..", "..", "..") island_root_path = os.path.join(os.getcwd(), "..", "..", "..", "..", "..")
else: else:
debug.error("the root path of " + get_system_base_name() + " must not be upper that 6 parent path") #debug.error("the root path of " + get_system_base_name() + " must not be upper that 6 parent path")
pass
island_path = os.path.join(island_root_path, "." + get_system_base_name()) island_path = os.path.join(island_root_path, "." + get_system_base_name())
island_path_config = os.path.join(island_path, "config.txt") island_path_config = os.path.join(island_path, "config.txt")
island_path_manifest = os.path.join(island_path, "manifest") island_path_manifest = os.path.join(island_path, "manifest")

View File

@ -231,9 +231,9 @@ class Manifest():
out = [] out = []
if default == None: if default == None:
if self.default != None: if self.default != None:
tmp_default = copy.deepcopy(self.default) default = copy.deepcopy(self.default)
else: else:
tmp_default = copy.deepcopy(self.default_base) default = copy.deepcopy(self.default_base)
# debug.error(" self.default=" + str(self.default)) # debug.error(" self.default=" + str(self.default))
# add all local project # add all local project
for elem in self.projects: for elem in self.projects: