Importing shapefiles into Geodatabase DATASET with arcpy

Discussion created by BEHSEINI on Mar 5, 2011
Latest reply on Mar 7, 2011 by hpbrantley
Hi guys
I am trying to import some shapefiles into the DATASET of a personal Geodatabase using arcpy at ArcMap 10.
I use this code
fcList = arcpy.ListFeatureClasses()
# Execute CopyFeatures for each input shapefile
for shapefile in fcList:
    # Determine the new output feature class path and name
    outFeatureClass = os.path.join(outWorkspace, shapefile.strip(".shp"))
    arcpy.CopyFeatures_management(shapefile, outFeatureClass)

which adds shapefiles as *.lyr into the GEODATABASE successfully but I want to import(Add) them into a specific dataset( for example schools.accd) in the Geodatabase .
Can you give me an idea how I can do it in ArcMap 10 using an stand alone pythin script?