import os

if os.name == 'nt':
    p = os.environ['PATH'].split(';')
    lib = os.path.join(os.path.split(__file__)[0], 'lib')
    os.environ['PATH'] = ";".join([lib] + p)
    
from .pyne_config import *

import os

if os.name == 'nt':
    p = os.environ['PATH'].split(';')
    lib = os.path.join(os.path.split(__file__)[0], 'lib')
    os.environ['PATH'] = ";".join([lib] + p)

try:
    from .pyne_config import *
except ImportError:
    msg = """Error importing PyNE: you should not try to import PyNE from
             its source directory; please exit the PyNE source tree, and relaunch
             your python interpreter from there."""
    raise ImportError(msg)
update `__init__.py` to give useful error message