This commit is contained in:
parent
f08b8d340f
commit
51792fe1d4
1 changed files with 0 additions and 13 deletions
13
assets.py
13
assets.py
|
@ -1,13 +0,0 @@
|
|||
import os
|
||||
|
||||
root_dir = './src/main/resources/omni_power' # current directory
|
||||
pattern = '*.json' # file extension or pattern
|
||||
assets_txt = './src/main/resources/omni_power/assets.txt' # current directory
|
||||
|
||||
files = []
|
||||
for dirpath, dirnames, filenames in os.walk(root_dir):
|
||||
for filename in filenames:
|
||||
if fnmatch.fnmatch(filename, pattern):
|
||||
files.append(os.path.join(dirpath, filename))
|
||||
|
||||
print(files)
|
Loading…
Reference in a new issue