commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 10/20: grc: show cmdline when xterm is used


From: git
Subject: [Commit-gnuradio] [gnuradio] 10/20: grc: show cmdline when xterm is used
Date: Fri, 28 Aug 2015 19:19:52 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 26b6cf4d645b68279b23467dc77d442c4b9720ec
Author: Sebastian Koslowski <address@hidden>
Date:   Wed Aug 19 10:14:51 2015 +0200

    grc: show cmdline when xterm is used
---
 grc/gui/ActionHandler.py | 1 -
 grc/gui/Messages.py      | 2 +-
 grc/python/Generator.py  | 1 +
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py
index 1cc55c4..19c6edc 100644
--- a/grc/gui/ActionHandler.py
+++ b/grc/gui/ActionHandler.py
@@ -639,7 +639,6 @@ class ExecFlowGraphThread(Thread):
         self.flow_graph = action_handler.get_flow_graph()
         #store page and dont use main window calls in run
         self.page = action_handler.get_page()
-        Messages.send_start_exec(self.page.get_generator().get_file_path())
         #get the popen
         try:
             self.p = self.page.get_generator().get_popen()
diff --git a/grc/gui/Messages.py b/grc/gui/Messages.py
index 90f508d..07c7a03 100644
--- a/grc/gui/Messages.py
+++ b/grc/gui/Messages.py
@@ -99,7 +99,7 @@ def send_fail_gen(error):
 
 ################# functions for executing flow graphs   
########################################
 def send_start_exec(file_path):
-    send('\nExecuting: "%s"'%file_path + '\n')
+    send('\nExecuting: ' + repr(file_path) + '\n')
 
 def send_verbose_exec(verbose):
     send(verbose)
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index f807b59..98fbd0c 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -140,6 +140,7 @@ class TopBlockGenerator(object):
         if self._generate_options == 'no_gui' and xterm_executable:
             cmds = [xterm_executable, '-e', args_to_string(cmds)]
 
+        Messages.send_start_exec(args_to_string(cmds))
         p = subprocess.Popen(
             args=cmds, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
             shell=False, universal_newlines=True)



reply via email to

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