cannot access geodatabase using windows command line

Discussion created by geogeek14 on Jun 29, 2012
Latest reply on Jul 30, 2015 by danielri
While i can set the workspace and get all the feature classes of geodatabase using Arcmap python window, i can set the workspace using windows commmand line window but i can't get the feature classes, to check if i've made a connection with the geodatabase.

the script above returns in Arcmap python windows array containing feature classes , but in commande line window it returns an empty array.

>>import arcpy 
>>arcpy.env.workspace = u'C:\\Users\\hp\\Documents\\ArcGIS\\Default.gdb'

i've checked global variables in windows 7:

PYTHONPATH = C:\Program Files (x86)\ArcGIS\Desktop10.0\bin;C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy;C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Scripts
the concerned part of PATH = C:\Python26\ArcGIS10.0;C:\Python26\ArcGIS10.0\Scripts;C:\Program Files (x86)\ArcGIS\ArcSDE\pgexe\bin

Available for more details

please help i'm stuck in this problem since a week