summaryrefslogtreecommitdiff
path: root/grc/core/Messages.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-02-23 21:47:52 +0100
committerSebastian Koslowski <koslowski@kit.edu>2016-04-05 08:39:02 +0200
commit3201557bfbed7ad81e0e5a34ece48bbd93ad709b (patch)
treedd213153dad1c146fa177a818b355341ed59edfb /grc/core/Messages.py
parent7453e24321e6ca237ded87a6bbed8d645d2a6b53 (diff)
grc-refactor: move gui prefs to gui
Diffstat (limited to 'grc/core/Messages.py')
-rw-r--r--grc/core/Messages.py20
1 files changed, 6 insertions, 14 deletions
diff --git a/grc/core/Messages.py b/grc/core/Messages.py
index f794fdbba5..da50487e5b 100644
--- a/grc/core/Messages.py
+++ b/grc/core/Messages.py
@@ -58,20 +58,12 @@ register_messenger(sys.stdout.write)
# Special functions for specific program functionalities
###########################################################################
def send_init(platform):
- p = platform
-
- def get_paths(x):
- return os.path.abspath(os.path.expanduser(x)), x
-
- send('\n'.join([
- "<<< Welcome to %s %s >>>" % (p.config.name, p.config.version),
- "",
- "Preferences file: " + p.get_prefs_file(),
- "Block paths:"
- ] + [
- "\t%s" % path + (" (%s)" % opath if opath != path else "")
- for path, opath in map(get_paths, p.get_block_paths())
- ]) + "\n")
+ msg = "<<< Welcome to {config.name} {config.version} >>>\n\n" \
+ "Block paths:\n\t{paths}\n"
+ send(msg.format(
+ config=platform.config,
+ paths="\n\t".join(platform.config.block_paths))
+ )
def send_page_switch(file_path):