f40a8edd60e4d5f3f47e83af4013e0efddf56ebf,framework/CodeInterfaces/RAVEN/RAVENparser.py,RAVENparser,copySlaveFiles,#RAVENparser#Any#,160
Before Change
// copy SLAVE raven files in case they are needed
for slaveInput in self.slaveInputFiles:
// full path
slaveInputFullPath = os .path.abspath(os.path.join(dirName,slaveInput))
// check if exists
if os.path.exists(slaveInputFullPath):
slaveInputBaseDir = os.path.dirname(slaveInput)
slaveDir = os .path.join(currentDirName,slaveInputBaseDir.replace(currentDirName,""))
if not os.path.exists(slaveDir):
os.makedirs(slaveDir)
shutil.copy(slaveInputFullPath,slaveDir)
After Change
for slaveInput in self.slaveInputFiles:
slaveDir = os.path.join(currentDirName, self.workingDir)
// if not exist then make the directory
try:
os.makedirs(slaveDir)
// if exist, print message, since no access to message handler
except FileExistsError:
print("current working dir {}".format(slaveDir))
print("already exists, this might imply deletion of present files")
try:
shutil.copy(slaveInput, slaveDir)
except FileNotFoundError:
raise IOError("{} ERROR: File "{}" has not been found!".format(self.printTag, slaveInput))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: idaholab/raven
Commit Name: f40a8edd60e4d5f3f47e83af4013e0efddf56ebf
Time: 2019-10-18
Author: Jia.Zhou@inl.gov
File Name: framework/CodeInterfaces/RAVEN/RAVENparser.py
Class Name: RAVENparser
Method Name: copySlaveFiles
Project Name: PPPLDeepLearning/plasma-python
Commit Name: 6343c36a52b8c4b789590bd0211fb13a5eedb0c3
Time: 2017-01-11
Author: asvyatkovskiy@gmail.com
File Name: plasma/conf.py
Class Name:
Method Name:
Project Name: idaholab/raven
Commit Name: f40a8edd60e4d5f3f47e83af4013e0efddf56ebf
Time: 2019-10-18
Author: Jia.Zhou@inl.gov
File Name: framework/CodeInterfaces/RAVEN/RAVENparser.py
Class Name: RAVENparser
Method Name: copySlaveFiles
Project Name: pyinstaller/pyinstaller
Commit Name: 6dea845223c329834e49b4b350534c5f058eeda7
Time: 2013-03-06
Author: mzibr.public@gmail.com
File Name: PyInstaller/__init__.py
Class Name:
Method Name: