I'm using the following to get a list of files under the target directory
import os
output = []
pwd = os.getcwd()
print(pwd)
os.chdir("../../target_dir")
cmd = "find . -name \*svg"
os.system(cmd)
How do I get the list of files into output (list)?