From: Alan P. <api...@ma...> - 2003-04-06 00:53:02
|
I apologize in advance if this is a silly question, but I think I am missing something: Right now the way my code works is you call it with "python AddressBookImporter.py". So when I add the __main__ method, my code doesn't run. So basically, if I put a __main__ in now I don't know how to run my code... Should I just create an interface so that a wrapper py script must be used to exec my code? Alan On Saturday, April 5, 2003, at 03:45 PM, Roger Binns wrote: >> The result was wonderful. Right now it's all in a self-contained code >> chunk. I am going to work on integrated it with the GUI next. > > I'd prefer to do the gui work, so I can make it fit in with the master > plan. I'm also intending to support multiple phones in the future > so I'd like to rework this to make that fit in well. > > Can you use the SF patch manager to submit a single file that is > your code. My preference is that it has a block at the bottom: > > if __name__=='__main__': > dostuff > > Where dostuff is effectively a test of the code (this is standard > Python practise). Also please make sure pychecker is happy with > the file. > >> Also, what's the >> process for getting a cvs login for commits? > > Submit a few patches. When I like what I see, Ill add you. > > Roger > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Bitpim-devel mailing list > Bit...@li... > https://lists.sourceforge.net/lists/listinfo/bitpim-devel |