ID 343556 - Using scriptOpen() on a script containing .jpgs returns an error

Follow

Problem summary
Using scriptOpen() on a script containing .jpgs returns an error, similar to the following:
 
RuntimeError: /path/to/file/

This appears to be Linux only, and this has been tested in CentOS 7 and Ubuntu.

Customer reported version
nuke.11.1v2

Customer reported platform
ubuntu

Steps to reproduce

1) Download and extract the attached files.

2) Run the following command in the Terminal:

/usr/local/Nuke11.1v3/python /filepath/test.py
3) Notice that an error is returned in the Terminal, similar to the following:
RuntimeError: /path/to/file/

Workaround
Open the .nk script in a text editor and change the file format from ".jpg" to ".jpeg".

Alternatively, use a different file format, such as .png files.

Reproduced by support
This bug has been reproduced in:
Nuke 11.1v3 - Linux CentOS 7
Nuke 11.1v1 - Linux CentOS 7 
Nuke 11.0v4 - Linux CentOS 7
Nuke 11.0v1 - Linux CentOS 7 - Regression

Unable to reproduce bug in:
Nuke 11.1v3 - Windows 10 - Mac OSX El Capitan
Nuke 10.5v7 - Linux CentOS 7

Earliest version tested
Nuke 10.5v7 - Linux CentOS 7
- This issue no longer appears in this version and has regressed

Expected behaviour
The script should run, and return the .nk script directory in the Terminal, similar to the following:
RuntimeError: /path/to/file/​

Actual behaviour
When the script is run, an error is returned in the Terminal.

    We're sorry to hear that

    Please tell us why