Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 423d1c24 authored by Betoule Marc's avatar Betoule Marc
Browse files

Modify the behavior of depend to retrieve filename with variable expansion

parent c4d1d03c
......@@ -115,7 +115,7 @@ class Repository:
depend = self.get_directive(Depend, s)
self._deps[s] = ""
for fn in depend.deps:
source = self.get_code_source(fn)
source = self.get_file_content(fn)
self._deps[s] += source
def get_all_string(self, seg):
......@@ -235,6 +235,25 @@ class Repository:
import pydoc
return pydoc.source_synopsis(self._code[seg].co_filename)
def get_file_content (self, filename):
""" Read content of a given file
This is the default to read dependencies of a segment.
filename: string
string, content of file
fid = open(path.expandvars(path.expanduser(filename)), "r")
code =
return code
class LocalRepository(Repository):
""" A local repository.
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