When I import the python-yql (Yahoo Query Language) module into my Python project, the string representing the local directory path from which the Python script is envoked, which is normally stored in sys.path[0] is changed to sys.path[1]. sys.path[0] gets replaced by the directory of what appears to be the location of the python-yql module. Is there a reason that sys.path[0] gets changed to sys.path[1] simply because the python-yql module is being used?
When I import the python-yql (Yahoo Query Language) module into my Python project, the
Share
In
yql/__init.pyyou’ll find this line:This is what inserts the yql path at the front of
sys.path.If the
yqlegg file is in your PYTHONPATH, then you can comment out or delete thissys.path.insertstatement and the package should will still work.