diff --git a/python/worblehat.py b/python/worblehat.py index 12cc566..a87a583 100755 --- a/python/worblehat.py +++ b/python/worblehat.py @@ -213,6 +213,13 @@ def combine_dicts(*dicts): res.update(d) return res +def open_file(filename): + if os.path.exists(filename): + os.system("%s %s || /usr/bin/env vi %s" %(os.getenv("EDITOR"), filename, filename)) + else: + exit("Error: %s: File does not exist!" % filename) + + cmdline_parsed = parse_cmdline(sys.argv[1:]) print 'command line parsed to:', cmdline_parsed