Commit 4a6dc45d authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

don't like link to scripts in metas

parent e8cf6029
...@@ -82,19 +82,20 @@ def copy_eclipse_settings(name,return_path): ...@@ -82,19 +82,20 @@ def copy_eclipse_settings(name,return_path):
print(bcolors.WARNING+" Copying "+name+"/"+EPS+" to "+name+"/"+bcolors.ENDC) print(bcolors.WARNING+" Copying "+name+"/"+EPS+" to "+name+"/"+bcolors.ENDC)
shout("rsync -av "+name+"/"+EPS+"/ "+name+"/") shout("rsync -av "+name+"/"+EPS+"/ "+name+"/")
# it does not have to be an Eclipse project
if (not os.path.islink(name+"/scripts")):
# sub all character line into '..', keep '/'
#regex = re.compile(r"[^/]+")
#return_path = regex.sub("..",name)
shout("ln -sf "+return_path+"/scripts "+name+"/scripts")
print("Linked scripts/ to project")
if not os.path.isdir(name+"/"+EPS): if not os.path.isdir(name+"/"+EPS):
print("Not copying up files for Eclipse project: not an Eclipse project") print("Not copying up files for Eclipse project: not an Eclipse project")
elif os.path.isfile(name+"/.project"): elif os.path.isfile(name+"/.project"):
print("Not copying up files for Eclipse project: .project is already there") print("Not copying up files for Eclipse project: .project is already there")
# it does not have to be an Eclipse project
if (not os.path.islink(name+"/scripts")):
# sub all character line into '..', keep '/'
#regex = re.compile(r"[^/]+")
#return_path = regex.sub("..",name)
shout("ln -sf "+return_path+"/scripts "+name+"/scripts")
print("Linked scripts/ to project")
def read_local_conf(conf_file,pattern): def read_local_conf(conf_file,pattern):
ret = [] ret = []
......
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