[fbt-commit] SF.net SVN: fbt:[94] trunk/bin/synplify_wrapper.py
Status: Beta
Brought to you by:
dave_infj
|
From: <dav...@us...> - 2010-04-17 18:43:29
|
Revision: 94
http://fbt.svn.sourceforge.net/fbt/?rev=94&view=rev
Author: dave_infj
Date: 2010-04-17 18:43:23 +0000 (Sat, 17 Apr 2010)
Log Message:
-----------
now have a poll-loop on the existance of the SRR file, in case synplify is slow to get started
Modified Paths:
--------------
trunk/bin/synplify_wrapper.py
Modified: trunk/bin/synplify_wrapper.py
===================================================================
--- trunk/bin/synplify_wrapper.py 2010-04-14 14:59:39 UTC (rev 93)
+++ trunk/bin/synplify_wrapper.py 2010-04-17 18:43:23 UTC (rev 94)
@@ -130,10 +130,11 @@
# Do synthesis run
syn_proc = subprocess.Popen( '%s -batch %s' % (exe, project), shell=True )
- time.sleep( 1 )
- if not os.path.isfile( synth_input_log ):
- raise Panic( "synthesis log does not exist. %s may not have run properly." %
- (exe) )
+ while not os.path.isfile( synth_input_log ):
+ time.sleep( 0.5 )
+ if syn_proc.poll() is not None:
+ raise Panic( "synthesis log does not exist. %s may not have run properly." %
+ (exe) )
# Parse synthesis log file
m_parse_log = re.compile( """
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|