automate.py 459 B

123456789101112131415161718192021
  1. from conf import PathConfig
  2. import os
  3. class Automate:
  4. 'Initialization Class for Automation'
  5. files = []
  6. def Init(self):
  7. Path = PathConfig( );
  8. FolderPaths = []
  9. Path.SetPath( );
  10. FolderPaths = Path.getPath( );
  11. return FolderPaths
  12. # print (FolderPaths)
  13. def GetFiles(self, paths):
  14. for file in os.listdir( paths[0] ):
  15. Automate.files.append( file )
  16. return Automate.files