Paths and import
When using an import statement, Python looks for a module matching that name in the following locations (and in the following order):
Paths specified in the PYTHONPATH system environment variable
A set of standard Python folders (the current folder, c:\python2x\lib, c:\python2x\Lib\site-packages, and so on)
Paths specified inside any .pth file found in 1 and 2
For more information on this, see the following:
docs.python.org/install/index.html#modif...python-s-search-path.
The installation of ArcGIS 10.0 products will install Python 2.6 if it isn't already installed. The installation will also add the file Desktop10.pth (or Engine10.pth or Server10.pth) into python26\Lib\site-packages. The contents of this file are two lines containing the path to your system's ArcGIS installation's arcpy and bin folders. These two paths are required to import ArcPy successfully in Python version 2.6.
When using an import statement, Python refers to your system's PYTHONPATH environment variable to locate module files. This variable is set to a list of directories.
TipTip:
If importing ArcPy produces either of the following errors, the required modules could not be found:
ImportError: No module named arcpy
ImportError: No module named arcgisscripting
To address this, browse using Windows Explorer to the python26\Lib\site-packages folder and add or edit the Desktop10.pth file. The file should contain the two lines shown below (corrected to your system's path if they do not match):
c:\Program Files\ArcGIS\Desktop10.0\arcpy
c:\Program Files\ArcGIS\Desktop10.0\bin
αυτο το βρικα απο το επισημο site της esri πρεπει να βαλω το path δλδ ? μπορεις καποιος να βοηθησει ?