mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
12 lines
172 B
Python
12 lines
172 B
Python
import os
|
|
|
|
def mkdir_noerror(d):
|
|
try:
|
|
os.mkdir(d)
|
|
except OSError:
|
|
pass
|
|
|
|
def write_to_file(filename, contents):
|
|
f = open(filename, "w")
|
|
f.write(contents)
|
|
f.close()
|