files_to_copy.append(os.path.join(xsl_dir, "command.xsl"))
files_to_copy.append(os.path.join(xsl_dir, "running.gif"))
for file_path in files_to_copy:
- shutil.copy2(file_path, log_dir)
+ # OP We use copy instead of copy2 to update the creation date
+ # So we can clean the LOGS directories easily
+ shutil.copy(file_path, log_dir)
# Instanciate the Gui in order to produce the xml files that contain all
# the boards
imgLogo = os.path.join(xslDir, "LOGO-SAT.png")
# copy the stylesheets in the log directory
- shutil.copy2(xslCommand, logDir)
- shutil.copy2(xslHat, logDir)
+ # OP We use copy instead of copy2 to update the creation date
+ # So we can clean the LOGS directories easily
+ shutil.copy(xslCommand, logDir)
+ shutil.copy(xslHat, logDir)
src.ensure_path_exists(os.path.join(logDir, "TEST"))
- shutil.copy2(xsltest, os.path.join(logDir, "TEST"))
- shutil.copy2(imgLogo, logDir)
+ shutil.copy(xsltest, os.path.join(logDir, "TEST"))
+ shutil.copy(imgLogo, logDir)
# If the last option is invoked, just, show the last log file
if options.last_terminal:
if not options.no_browser:
logger.write(_("\nOpening the log file\n"), 3)
src.system.show_in_editor(runner.cfg.USER.browser, xmlHatFilePath, logger)
- return 0
\ No newline at end of file
+ return 0