Update mypath.py
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user