Update mypath.py

This commit is contained in:
lilly
2023-03-30 17:11:11 +09:00
parent 3472043e28
commit 37851ff4ce
+1 -1
View File
@@ -73,7 +73,7 @@ def name_split_choice(name):
def filenameget(v_path): def filenameget(v_path):
t_path=os.path.join(os.path.dirname(__file__),v_path) t_path=os.path.join(os.path.dirname(__file__),v_path)
print(t_path) print(t_path)
fullpaths=glob.glob(t_path) fullpaths=glob.glob(t_path, recursive=True)
print(fullpaths) print(fullpaths)
fullpath=random.choice(fullpaths) fullpath=random.choice(fullpaths)
name=os.path.basename(fullpath) name=os.path.basename(fullpath)