commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r7893 - grc/branches/grc_reloaded/src/grc/platforms/gn


From: jblum
Subject: [Commit-gnuradio] r7893 - grc/branches/grc_reloaded/src/grc/platforms/gnuradio_python
Date: Thu, 28 Feb 2008 23:43:45 -0700 (MST)

Author: jblum
Date: 2008-02-28 23:43:45 -0700 (Thu, 28 Feb 2008)
New Revision: 7893

Modified:
   grc/branches/grc_reloaded/src/grc/platforms/gnuradio_python/Generator.py
Log:
fixed file ext

Modified: 
grc/branches/grc_reloaded/src/grc/platforms/gnuradio_python/Generator.py
===================================================================
--- grc/branches/grc_reloaded/src/grc/platforms/gnuradio_python/Generator.py    
2008-02-29 06:40:27 UTC (rev 7892)
+++ grc/branches/grc_reloaded/src/grc/platforms/gnuradio_python/Generator.py    
2008-02-29 06:43:45 UTC (rev 7893)
@@ -24,6 +24,7 @@
 import popen2
 import sys
 from Cheetah.Template import Template
+from grc.Constants import FLOW_GRAPH_FILE_EXTENSION
 
 ##The default binary to execute python files.
 PYEXEC = 'python'
@@ -50,7 +51,7 @@
                @return a list of errors
                """
                self._pid_file = pid_file
-               exec_file = file_path + '.py'
+               exec_file = file_path.replace(FLOW_GRAPH_FILE_EXTENSION, '.py')
                #generate file
                try: open(exec_file, 'w').write(str(self))
                except: return ["Could not generate file."]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]