32 lines
615 B
Python
32 lines
615 B
Python
import os.path as Pathing
|
|
import os as OS
|
|
|
|
# ·!未实现
|
|
|
|
# Field
|
|
ListSampler = [ ]
|
|
|
|
# Method
|
|
|
|
# 拉取绝对路径
|
|
def List_Sampler () :
|
|
if ListSampler is not None :
|
|
Refresh ()
|
|
else :
|
|
Initialise ()
|
|
|
|
# Core
|
|
def IsCorrectStyleType ( File , Filter = None ) :
|
|
if (Filter is None) :
|
|
return True # 暂定
|
|
else :
|
|
return True # 暂定
|
|
|
|
def Initialise () :
|
|
Path_Processing = Directory.join ( OS.getcwd ().replace ( "\\" , "/" ) , F"./Reference/Model/Diffusion" )
|
|
List_Return = [ File for File in OS.listdir ( Path_Processing ) if IsCorrectStyleType ( File ) ]
|
|
|
|
return List_Return
|
|
|
|
def Refresh () :
|
|
pass |