2010-12-10, 21:41
ok. i will try that... i added this in the code to try and its still going..
but i'm not sure if that's the proper way of doing it.
Never mind it just failed after Posting...err. lol. I'll try your code.
Quote:def _test_mame_name( app, filename ):
if ( app.lower().find('mame') > 0 ):
try:
page = subprocess.Popen(app+' -listfull '+filename, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE,close_fds=True)
output, errors = page.communicate()
except :
page = subprocess.Popen(app+' -listfull '+filename, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE,close_fds=True)
output = page.stdout.read()
name = ''.join(re.findall('"(.*?)"', output.replace('\n', '')))
romname = re.sub(' \(.*?\)', '', name).replace('/','-')
page.stdout.close()
return romname
else:
return filename
but i'm not sure if that's the proper way of doing it.
Never mind it just failed after Posting...err. lol. I'll try your code.