[Tutor] Can anyone explain this

Amandeep Behl amandeep.qa at gmail.com
Sat Aug 3 01:33:00 CEST 2013


Can anyone explain this code below:


import sys
import os

if __name__ == '__main__':
    sys.path.insert(0, "..")
else:
    sys.path.insert(0, os.path.join(
        os.path.split(__file__)[0], '..'))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130802/9852756d/attachment.html>


More information about the Tutor mailing list