from mailconfig_book import popusername 'lutz@learning-python commyaddress 'lutz@learning-python comlistbg 'wheatlistfg 'navyviewbg 'aquamarineviewfg 'blackwrapsz viewheaders none no bcc fetchlimit load more headers get base in (copied from goldenroddark greenbeige chocolatebrownexample - pp \internet\pymailgui\altconfigs\launch_pymailgui py to run without pythonpath setup ( desktopimport os launcher py is overkill os environ['pythonpath'rhmmgeneralize me os system('pymailgui py'inherits path env var account files like those in examples - and - can import the base "bookmodule (to extend itor not (to replace it entirelyto use these alternative account configurationsrun command line like the following or run the self-configuring launcher script in example - from any location either wayyou can open these account' windows to view the included saved mailsbut be sure to change configurations for your own email accounts and preferences first if you wish to fetch or send mail from these clientsc:\pp \internet\email\pymailgui\altconfigspymailgui py account name?rmi add "startto the beginning of this command to keep your console alive on windows so you can open multiple accounts (try "&at the end on unixfigure - earlier shows the scene with all three of my accounts open in pymailgui keep them open perpetually on my desktopsince load fetches just newly arrived headers no matter how long the gui may have sat dormantand send requires nothing to be loaded at all while they're openthe alternative color schemes make the accountswindows distinct desktop shortcut to the launcher script makes opening my accounts even easier as isaccount names are only requested when this special pymailgui py file is run directlyand not when the original file is run directly or by program launchers (in which case there may be no stdin to readextending module like mailconfig which might be imported in multiple places this way turns out to be an interesting task (which is largely why don' consider its quick solution here to be an official end-user featurefor instancethere are other ways to allow for multiple accountsincludingchanging the single mailconfig module in-place importing alternative modules and storing them as key "mailconfigin sys modules pymailgui implementation