gecko/build/pymake/tests/pycmd.py

10 lines
190 B
Python
Raw Normal View History

2010-10-18 06:50:27 -07:00
import os
def writetofile(args):
with open(args[0], 'w') as f:
f.write(' '.join(args[1:]))
def writeenvtofile(args):
with open(args[0], 'w') as f:
f.write(os.environ[args[1]])