2024.3 and 2024.8 generate cubitXYZ.jou if Python script is a command line parameter

How to reproduce:

  1. Run coreform_cubit.exe.
  2. Switch off “Enable Journaling” in settings/history. Save settings and exit.
  3. Prepare bootstrap Python “boot.py”: :
import sys
with open('main.py') as f:
    code = compile(f.read(), 'main.py', 'exec')
exec(code)
  1. Create main.py:
import cubit
cubit.cmd('reset')
  1. From the Windows command line execute:
"C:\Program Files\Coreform Cubit 2024.3\bin\coreform_cubit.exe" boot.py
  1. Open settings/history. Option “Enable Journaling” will be switched on???
  2. File cubit01.jou will be created :frowning:
  3. Additionally: Command from the main.py will not be journaled in Cubit console:
********** Now playing boot.py **********

Journaled Command: import sys

Journaled Command: with open('main.py') as f:
    code = compile(f.read(), 'main.py', 'exec')

Journaled Command: exec(code)

Journaled Command: 

Cubit>

May be, it is more serious issue.

P.S. At least in 2022.11 all was Ok. Journal file is not created, all cubit commands in console are journaled:

********** Now playing C:/Users/UshakovAY/PycharmProjects/GOMA/tst/boot.py **********

  Changing directory to: C:/Users/UshakovAY/PycharmProjects/GOMA/tst
Cubit>
Cubit>
Cubit>
Cubit>
Finished Command: reset

  Changing directory back to: C:\Users\UshakovAY\PycharmProjects\GOMA\tst
Cubit>
Cubit>

Hi @AndyU,

Maybe try passing in the additional command line argument -nojournal when you launch your Python script. So try running:

"C:\Program Files\Coreform Cubit 2024.3\bin\coreform_cubit.exe" -nojournal boot.py

I unfortunately don’t have a Windows machine to test this on at the moment, but this worked for me on macOS.

Keep us posted :slight_smile:

Cheers,
Pat

Hi @AndyU,
as @pmarty said. Passing the additional argument -nojournal will prevent cubit from creating a journal file. This works on all supported OS.

Thank you, your suggestion is suitable as a temporary solution to one of the problems, but I wanted to report bugs more.

Thanks for reporting this! The dev’s are informed and will take a look into this changed behaviour.