Skip to content

Commit

Permalink
update copying
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mdavid-m committed Nov 26, 2024
1 parent c6f3379 commit 24f0852
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-windows-executable-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,12 @@ jobs:
$PYTHON_DIR="${{ runner.tool_cache }}/Python/${{ env.PYTHON_VERSION }}/x64" # Path from actions/setup-python
$EMBED_DIR="python-${{ env.PYTHON_VERSION }}"
mkdir -p $EMBED_DIR/Lib/tkinter
mkdir -p $EMBED_DIR/tcl
# Copy necessary Tkinter files from the regular Python distribution
cp -r $PYTHON_DIR/tcl $EMBED_DIR/
cp -r $PYTHON_DIR/Lib/tkinter $EMBED_DIR/Lib/
cp -r $PYTHON_DIR/Lib/tkinter* $EMBED_DIR/Lib/tkinter/
cp -r $PYTHON_DIR/tcl* $EMBED_DIR/tcl/
cp $PYTHON_DIR/DLLs/_tkinter.pyd $EMBED_DIR/
cp $PYTHON_DIR/DLLs/tcl86t.dll $EMBED_DIR/
cp $PYTHON_DIR/DLLs/tk86t.dll $EMBED_DIR/
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/test_embedded_tk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ jobs:
# Define paths for the regular Python distribution and the embeddable distribution
$PYTHON_DIR="${{ runner.tool_cache }}/Python/${{ env.PYTHON_VERSION }}/x64" # Path from actions/setup-python
$EMBED_DIR="python-${{ env.PYTHON_VERSION }}"
dir $PYTHON_DIR/Lib/
dir $PYTHON_DIR/Lib/tkinter/
dir $PYTHON_DIR/tcl/
dir $PYTHON_DIR/DLLs/
mkdir -p $EMBED_DIR/Lib/tkinter
mkdir -p $EMBED_DIR/tcl
# Copy necessary Tkinter files from the regular Python distribution
cp -r $PYTHON_DIR/tcl $EMBED_DIR/
cp -r $PYTHON_DIR/Lib/tkinter $EMBED_DIR/Lib/
cp -r $PYTHON_DIR/Lib/tkinter* $EMBED_DIR/Lib/tkinter/
cp -r $PYTHON_DIR/tcl* $EMBED_DIR/tcl/
cp $PYTHON_DIR/DLLs/_tkinter.pyd $EMBED_DIR/
cp $PYTHON_DIR/DLLs/tcl86t.dll $EMBED_DIR/
cp $PYTHON_DIR/DLLs/tk86t.dll $EMBED_DIR/

0 comments on commit 24f0852

Please sign in to comment.