File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -172,10 +172,20 @@ CURRENT_STAGING_DIR="${STAGING_DIR}/${HF_NAMESPACE}/${ENV_NAME}"
172172mkdir -p " $CURRENT_STAGING_DIR /src/core"
173173mkdir -p " $CURRENT_STAGING_DIR /src/envs/$ENV_NAME "
174174
175+ # Copy src/__init__.py if it exists
176+ if [ -f " src/__init__.py" ]; then
177+ cp src/__init__.py " $CURRENT_STAGING_DIR /src/__init__.py"
178+ fi
179+
175180# Copy core files
176181cp -R src/core/ " $CURRENT_STAGING_DIR /src/core/"
182+
177183# Copy environment files
178184cp -R " src/envs/$ENV_NAME /" " $CURRENT_STAGING_DIR /src/envs/$ENV_NAME /"
185+
186+ # Create __init__.py for envs package (needed for Python imports)
187+ touch " $CURRENT_STAGING_DIR /src/envs/__init__.py"
188+
179189echo " 📁 Copied core and $ENV_NAME environment files to $CURRENT_STAGING_DIR "
180190
181191# Create environment-specific multi-stage Dockerfile
You can’t perform that action at this time.
0 commit comments