Location of the segment’s source code.
A reposiroty is the location where to find the segment’s source code files. It returns the full path of all files that will be used to execute the segment (code, hook, ...). By default, local repositories are used, but it can also be a version control system (git, CVS, ...).
Return segment code as a string.
This is done to prevent file changes after hashkey computation.
Return external dependency code as a string.
This is done to prevent file changes after hashkey computation.
Initialize a directive object from segment seg.
>>> r = LocalRepository(['fourth'], "./test/first_test")
>>> print r.get_directive (Multiplex, 'fourth').__class__
pipelet.directive.Multiplex
Bases: pipelet.repository.Repository
A local repository is made of a main directory where to find segment’s code file.
Read source code from file
>>> print LocalRepository.get_code_source ('./test/first_test/third.py')[0:17]
adj = 'the_brave'
Return filename candidates.
>>> r = LocalRepository(['first','second'], "./test/first_test", permissive=True)
>>> print r.get_fns()
['./test/first_test/second.py', './test/first_test/fourth.py', './test/first_test/third.py', './test/first_test/main.py', './test/first_test/first.py']