litex/mibuild/tools.py

13 lines
172 B
Python
Raw Normal View History

2013-02-07 16:07:30 -05:00
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()