mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
wafsamba: allow samba_dist.dist() to be called from a different directory.
Up to now it assumed to be called from the top level srcdir. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
cd7f401744
commit
4a5ded2b69
@ -128,10 +128,13 @@ def dist(appname='', version=''):
|
||||
|
||||
|
||||
def list_directory_files(abspath):
|
||||
curdir = os.getcwd()
|
||||
os.chdir(srcdir)
|
||||
out_files = []
|
||||
for root, dirs, files in os.walk(abspath):
|
||||
for f in files:
|
||||
out_files.append(os.path.join(root, f))
|
||||
os.chdir(curdir)
|
||||
return out_files
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user