__init__.py 348 B

12345678
  1. import os,sys
  2. if os.path.abspath(os.path.dirname(__file__)) not in sys.path:
  3. sys.path.append(os.path.abspath(os.path.dirname(__file__)))
  4. PY_DIR = os.path.abspath(os.path.dirname(sys.executable))
  5. PYSPP = os.path.abspath(os.path.join(PY_DIR,'Lib', 'site-packages'))
  6. if PY_DIR not in sys.path:
  7. sys.path.append(PY_DIR)
  8. sys.path.append(PYSPP)