litex/mibuild/tools.py
Sebastien Bourdeauducq fb5130fc1f Initial version
2013-02-07 22:07:30 +01:00

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()