#!/usr/bin/python

import sys
from os.path import exists
from os import mkdir

path = sys.argv[1]
result = sys.argv[2]

if not exists( path ):
	mkdir( path )

# write a file called '%s' % result with some fake gro file names
full = "%s/%s" % ( path, result )
FILE = open( full, "w" )

FILE.write( "gro1.gro\n" )
FILE.write( "gro2.gro\n" )
FILE.write( "gro3.gro\n" )

FILE.close()
