|
@@ -6,20 +6,20 @@ import shutil
|
|
class Automate:
|
|
class Automate:
|
|
'Initialization Class for Automation'
|
|
'Initialization Class for Automation'
|
|
|
|
|
|
- files = []
|
|
|
|
|
|
|
|
def Init(self):
|
|
def Init(self):
|
|
Path = PathConfig( )
|
|
Path = PathConfig( )
|
|
FolderPaths = []
|
|
FolderPaths = []
|
|
Path.SetPath( )
|
|
Path.SetPath( )
|
|
- FolderPaths = Path.getPath( )
|
|
|
|
|
|
+ FolderPaths = Path.getPath()
|
|
return FolderPaths
|
|
return FolderPaths
|
|
# print (FolderPaths)
|
|
# print (FolderPaths)
|
|
|
|
|
|
def GetFiles(self, paths):
|
|
def GetFiles(self, paths):
|
|
- for file in os.listdir( paths[0] ):
|
|
|
|
- Automate.files.append( file )
|
|
|
|
- return Automate.files
|
|
|
|
|
|
+ files = []
|
|
|
|
+ for file in os.listdir( paths ):
|
|
|
|
+ files.append( file )
|
|
|
|
+ return files
|
|
|
|
|
|
def copyFiles(self, paths):
|
|
def copyFiles(self, paths):
|
|
for file in os.listdir( paths[0] ):
|
|
for file in os.listdir( paths[0] ):
|