add a pre-curses init file

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-08-20 22:22:14 -04:00
parent 1d27f708a6
commit dcbda9ddbd
1 changed files with 6 additions and 0 deletions

View File

@ -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'