Skip to content

Commit

Permalink
[bugfix] Add startup argument for abaqus.cae (backport #5575) (#5582)
Browse files Browse the repository at this point in the history
[bugfix] Add startup argument for abaqus.cae (#5575)

Introduced #5492

(cherry picked from commit dc46d33)

Co-authored-by: Hailin Wang <hailin.wang@connect.polyu.hk>
  • Loading branch information
mergify[bot] and haiiliin committed Mar 22, 2024
1 parent 8de06fe commit d6854e9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/abqpy/cli.py
Expand Up @@ -57,6 +57,7 @@ def cae(
database: str | None = None,
replay: str | None = None,
recover: str | None = None,
startup: str | None = None,
gui: bool = False,
envstartup: bool = True,
savedOptions: bool = True,
Expand All @@ -80,6 +81,8 @@ def cae(
The name of the replay file to open, by default None
recover : str, optional
The name of the journal file to open, by default None
startup : str, optional
The name of the startup file to open, by default None
gui : bool, optional
Run Abaqus/CAE command with the graphical user interface (GUI mode), by default False.
envstartup : bool, optional
Expand All @@ -100,9 +103,10 @@ def cae(
"""
# Parse options
options = self._parse_options(script=script if gui else None, noGUI=script if not gui else None,
database=database, replay=replay, recover=recover, noenvstartup=not envstartup,
noSavedOptions=not savedOptions, noSavedGuiPrefs=not savedGuiPrefs,
noStartupDialog=not startupDialog, custom=custom, guiTester=guiTester,
database=database, replay=replay, recover=recover, startup=startup,
noenvstartup=not envstartup, noSavedOptions=not savedOptions,
noSavedGuiPrefs=not savedGuiPrefs, noStartupDialog=not startupDialog,
custom=custom, guiTester=guiTester,
guiRecord=True if guiRecord is True else None,
guiNoRecord=True if guiRecord is False else None) # fmt: skip
args = ("--", *args) if args else ()
Expand Down

0 comments on commit d6854e9

Please sign in to comment.