mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-21 14:42:03 -05:00
14 lines
267 B
Python
14 lines
267 B
Python
import glob
|
|
import os
|
|
|
|
script_dir = os.path.dirname(__file__)
|
|
rel_path = "memCakes/*.png"
|
|
abs_file_path = os.path.join(script_dir, rel_path)
|
|
|
|
file_names = []
|
|
|
|
|
|
for filepath in glob.iglob(abs_file_path):
|
|
file_names.append(filepath.split("\\")[-1])
|
|
|
|
print(file_names) |