Skip to content

Commit 9451bde

Browse files
committed
activate venv
1 parent 5bffcaf commit 9451bde

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/geometry-mechanical-dpf.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ jobs:
127127
ANSYS_WORKBENCH_LOGGING: 0
128128
ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 2
129129
run: |
130+
. /env/bin/activate
130131
xvfb-run mechanical-env python geometry-mechanical-dpf/02_mechanical.py
131132
132133
- name: Store the outputs

geometry-mechanical-dpf/02_mechanical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# -- Start PyMechanical app --
3131
#
3232
app = mech.App()
33-
app.update_globals(globals())
33+
globals().update(mech.global_variables(app, True))
3434
print(app)
3535

3636
# -- Parameters --

0 commit comments

Comments
 (0)