mirror of https://github.com/VLSIDA/OpenRAM.git
Prevent same file error when copying the config file (VLSIDA/PrivateRAM#108)
This commit is contained in:
parent
1a25fcf9a5
commit
3f2d61a0fa
|
|
@ -193,8 +193,11 @@ class sram():
|
||||||
|
|
||||||
# Write the config file
|
# Write the config file
|
||||||
start_time = datetime.datetime.now()
|
start_time = datetime.datetime.now()
|
||||||
from shutil import copyfile
|
try:
|
||||||
copyfile(OPTS.config_file, OPTS.output_path + OPTS.output_name + '.py')
|
from shutil import copyfile
|
||||||
|
copyfile(OPTS.config_file, OPTS.output_path + OPTS.output_name + '.py')
|
||||||
|
except shutil.SameFileError:
|
||||||
|
pass
|
||||||
debug.print_raw("Config: Writing to {0}".format(OPTS.output_path + OPTS.output_name + '.py'))
|
debug.print_raw("Config: Writing to {0}".format(OPTS.output_path + OPTS.output_name + '.py'))
|
||||||
print_time("Config", datetime.datetime.now(), start_time)
|
print_time("Config", datetime.datetime.now(), start_time)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue