From: Jeremy K. <jer...@gm...> - 2016-03-09 02:47:34
|
On Tue, Mar 8, 2016 at 6:34 PM, Sharma, Girish <gir...@wu...> wrote: > Hi Kloth, > > I think I understand what you mean. Could you please specify where should I add > >>if 0: >> import datetime > > There are three options: > 1. setup.py file > 2. mainscript.py file (I have just one file) > 3. somewhere else (in some .py file in library) In the mainscript.py file usually as it is not needed for the library to operate normally. > Also, where exactly in the file. In the beginning of the imports or somewhere else? Its location is not really that important. But, to keep related things together, I would place it after the other imports in the file. -- Jeremy Kloth |