Skip to content

Commit

Permalink
Fixed double timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomelo9 committed Jun 20, 2024
1 parent 07e53be commit d3bb077
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyfpga/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import os
import subprocess

from datetime import datetime
from pathlib import Path
from shutil import which
from time import time
Expand Down Expand Up @@ -277,7 +276,9 @@ def _create_file(self, basename, extension, context):
file.write(content)

def _run(self, command):
self.logger.info('Running the underlying tool (%s)', datetime.now())
self.logger.info(
'Running the underlying tool (%s)', self.tool['make-app']
)
run_error = 0
old_dir = Path.cwd()
new_dir = Path(self.odir)
Expand All @@ -299,7 +300,6 @@ def _run(self, command):
finally:
os.chdir(old_dir)
end = time()
self.logger.info('Done (%s)', datetime.now())
elapsed = end - start
self.logger.info(
'Elapsed time %dh %dm %.2fs',
Expand Down

0 comments on commit d3bb077

Please sign in to comment.