Hello,
please help me. The Problem has shown with release of 10.2.1 and arcgis upgrade to Python 2.7.5.
Function:
class Toolbox(object):
def __init__(self):
sysPaths = sys.path
The result of sysPath is "['C:\\Windows\\system32\\python27.zip', u'c:\\program files (x86)\\arcgis\\desktop10.2\\arcpy', 'C:\\Program Files (x86)\\Python27\\ArcGIS10.2\\Lib', 'C:\\Program Files (x86)\\Python27\\ArcGIS10.2\\DLLs', 'C:\\Program Files (x86)\\Python27\\ArcGIS10.2\\Lib\\lib-tk', 'C:\\Windows\\System32', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\bin', 'C:\\Program Files (x86)\\Python27\\ArcGIS10.2', 'C:\\Program Files (x86)\\Python27\\ArcGIS10.2\\lib\\site-packages', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\arcpy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\ArcToolbox\\Scripts']" in the new release.
The former release of 10.2.0 shows this result and includes the Folder-path of the python Toolbox in the first position, which I need very much.
[u'C:\\...\\...\\Install', 'C:\\Windows\\system32\\python27.zip', u'c:\\program files (x86)\\arcgis\\desktop10.2\\arcpy', 'C:\\Python27\\ArcGIS10.2\\Lib', 'C:\\Python27\\ArcGIS10.2\\DLLs', 'C:\\Python27\\ArcGIS10.2\\Lib\\lib-tk', 'C:\\Windows\\system32', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\bin', 'C:\\Python27\\ArcGIS10.2', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\arcpy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\ArcToolbox\\Scripts', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages\\win32', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages\\win32\\lib', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages\\Pythonwin']
What other way is there to get the path of the Toolbox??? Please help!
Regards,
Rosita
please help me. The Problem has shown with release of 10.2.1 and arcgis upgrade to Python 2.7.5.
Function:
class Toolbox(object):
def __init__(self):
sysPaths = sys.path
The result of sysPath is "['C:\\Windows\\system32\\python27.zip', u'c:\\program files (x86)\\arcgis\\desktop10.2\\arcpy', 'C:\\Program Files (x86)\\Python27\\ArcGIS10.2\\Lib', 'C:\\Program Files (x86)\\Python27\\ArcGIS10.2\\DLLs', 'C:\\Program Files (x86)\\Python27\\ArcGIS10.2\\Lib\\lib-tk', 'C:\\Windows\\System32', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\bin', 'C:\\Program Files (x86)\\Python27\\ArcGIS10.2', 'C:\\Program Files (x86)\\Python27\\ArcGIS10.2\\lib\\site-packages', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\arcpy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\ArcToolbox\\Scripts']" in the new release.
The former release of 10.2.0 shows this result and includes the Folder-path of the python Toolbox in the first position, which I need very much.
[u'C:\\...\\...\\Install', 'C:\\Windows\\system32\\python27.zip', u'c:\\program files (x86)\\arcgis\\desktop10.2\\arcpy', 'C:\\Python27\\ArcGIS10.2\\Lib', 'C:\\Python27\\ArcGIS10.2\\DLLs', 'C:\\Python27\\ArcGIS10.2\\Lib\\lib-tk', 'C:\\Windows\\system32', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\bin', 'C:\\Python27\\ArcGIS10.2', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\arcpy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\ArcToolbox\\Scripts', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages\\win32', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages\\win32\\lib', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages\\Pythonwin']
What other way is there to get the path of the Toolbox??? Please help!
Regards,
Rosita