From dcbda9ddbda5859d49d1903018c4dba5d2f20007 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Thu, 20 Aug 2009 22:22:14 -0400 Subject: [PATCH] add a pre-curses init file --HG-- branch : pmacs2 --- application.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application.py b/application.py index f161c89..873820d 100755 --- a/application.py +++ b/application.py @@ -1155,6 +1155,12 @@ if __name__ == "__main__": if os.getenv('PMC_TERM'): os.putenv('TERM', os.getenv('PMC_TERM')) + # load an optional init file + try: + exec(open(os.path.join(os.getenv('HOME'), '.pmc', 'init'), 'r')) + except: + pass + # if -b but no -m, then use -m hex if opts.binary and not opts.mode: opts.mode = 'hex'