<div dir="ltr"><div><div><div><div><div>Group,<br></div>I am running a grass-python script but when i replace a variable argument within the command the script does not work....<br><br>The following works...<br>grass.run_command('r.in.gdal', input='/home/alassane/Data/SanbornCD/tile/newconstr_mask.tif', output='construction')<br><br></div>But not this...<br>command="'r.in.gdal', input='"+sys.argv[5]+"', output='construction'"<br>print 'r.in.gdal command argument... = %s\n ' % command<br>grass.run_command(command) <br><br>print 'r.in.gdal command argument... = %s\n ' % command<br>r.in.gdal command argument... = 'r.in.gdal', input='/home/alassane/Data/SanbornCD/tile/newconstr_mask.tif', output='construction'<br><br><br></div><div>The following also works...<br>command ="/home/alassane/Programs/gdal/demclass1"+" "+infile1+" "+infile2+" "+sys.argv[3]+" "+outfile<br>os.system(command)<br><br></div>Your help is appreciated.<br><br></div>Regards,<br></div>Alassane<br><div><div><div><br></div></div></div></div>