__main__.py 331 B

1234567891011121314
  1. #!/usr/bin/env python
  2. import sys
  3. if __package__ is None and not hasattr(sys, 'frozen'):
  4. # direct call of __main__.py
  5. import os.path
  6. path = os.path.realpath(os.path.abspath(__file__))
  7. sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
  8. import crawl_xuexi
  9. if __name__ == '__main__':
  10. crawl_xuexi.main()