Skip to content

Commit 3ab76e9

Browse files
committed
copy inits
1 parent d0c349b commit 3ab76e9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/deploy_to_hf.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,20 @@ CURRENT_STAGING_DIR="${STAGING_DIR}/${HF_NAMESPACE}/${ENV_NAME}"
172172
mkdir -p "$CURRENT_STAGING_DIR/src/core"
173173
mkdir -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
176181
cp -R src/core/ "$CURRENT_STAGING_DIR/src/core/"
182+
177183
# Copy environment files
178184
cp -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+
179189
echo "📁 Copied core and $ENV_NAME environment files to $CURRENT_STAGING_DIR"
180190

181191
# Create environment-specific multi-stage Dockerfile

0 commit comments

Comments
 (0)