Skip to content

Commit 51cc2f0

Browse files
committed
🐛 only add folder as import, not the zip file
1 parent 2d585f2 commit 51cc2f0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/cdci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
# - other-reports
132132
strategy:
133133
matrix:
134-
python-version: ["3.11"]
134+
python-version: ["3.12"]
135135
os:
136136
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow#example-using-a-multi-dimension-matrix
137137
# - runner: "ubuntu-latest"
@@ -157,8 +157,9 @@ jobs:
157157
- name: Build executable
158158
run: |
159159
cd gui
160-
pyinstaller -n vuegen_gui -D --collect-all pyvis --collect-all streamlit --collect-all st_aggrid --collect-all customtkinter --collect-all quarto_cli --add-data ../docs/example_data/Basic_example_vuegen_demo_notebook:example_data/Basic_example_vuegen_demo_notebook app.py
160+
pyinstaller -n vuegen_gui -D --collect-all pyvis --collect-all streamlit --collect-all st_aggrid --collect-all customtkinter --collect-all quarto_cli --collect-all plotly --collect-all _plotly_utils --collect-all pyvis --collect-all pandas --collect-all numpy --collect-all matplotlib --collect-all openpyxl --collect-all xlrd --collect-all nbformat --collect-all nbclient --collect-all altair --collect-all itables --collect-all kaleido --collect-all vl_convert --collect-all yaml --collect-all dataframe_image --collect-all strenum --collect-all jinja2 --collect-all fastjsonschema --collect-all jsonschema --collect-all jsonschema_specifications --collect-all traitlets --collect-all referencing add-data ../docs/example_data/Basic_example_vuegen_demo_notebook:example_data/Basic_example_vuegen_demo_notebook app.py
161161
# -w -F
162+
# replace by spec file once done...
162163
- name: Upload executable
163164
uses: actions/upload-artifact@v4
164165
with:

gui/app.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@
6161
# os.environ["PYTHONPATH"] = os.pathsep.join(
6262
# sys.path
6363
# ) # ! requires kernel env with same Python env, but does not really seem to help
64-
os.environ["PYTHONPATH"] = os.pathsep.join(
65-
[sys.path[0], sys._MEIPASS]
66-
) # does not work
64+
os.environ["PYTHONPATH"] = sys._MEIPASS
65+
# ([[sys.path[0], sys._MEIPASS]) # does not work when built on GitHub Actions
6766
elif app_path.parent.name == "gui":
6867
# should be always the case for GUI run from command line
6968
path_to_dat = (
@@ -321,7 +320,7 @@ def select_directory():
321320
##########################################################################################
322321
ctk_label_env_path = customtkinter.CTkLabel(app, text="PATH:")
323322
ctk_label_env_path.grid(row=row_count, column=0, columnspan=1, padx=2, pady=5)
324-
env_path = tk.StringVar(value=os.environ.get("PATH", "not found"))
323+
env_path = tk.StringVar(value=_PATH)
325324
ctk_entry_path_env = customtkinter.CTkEntry(
326325
app,
327326
width=400,

0 commit comments

Comments
 (0)