diff --git a/mypath.py b/mypath.py index 11803c0..f53b5ab 100644 --- a/mypath.py +++ b/mypath.py @@ -73,7 +73,7 @@ def name_split_choice(name): def filenameget(v_path): t_path=os.path.join(os.path.dirname(__file__),v_path) print(t_path) - fullpaths=glob.glob(t_path) + fullpaths=glob.glob(t_path, recursive=True) print(fullpaths) fullpath=random.choice(fullpaths) name=os.path.basename(fullpath)