Skip to content

EXTRAS-71 - Python Interpreter wizard item only executes first line of Python code #7

Open

Description

@tclarke
  1. Install Python Scripting Extension
  2. Open "Wizard Builder" from Tools menu.
  3. Drag and drop "Python Interpreter" item from left panel into wizard
  4. Double-click on the "Command" argument of the "Python Interpreter" wizard item.
  5. Copy and paste the following text into the value text box for the "Command" value item.

foo = list()
foo.append(3)
foo.append(10)
bar = list()
baz = list()
for item in foo:
if item >= 10:
bar.append(item)
else:
baz.append(item)

foo2 = list()
foo2.append("Test Item")

  1. Click the "OK" button to set the value of the wizard item.
  2. Click the "Execute" button to execute the wizard.
  3. Go to the Python tab of the Scripting Window.
  4. Type "print foo". You should see "[3, 10]". Currently, you see "[]", this is the bug because it currently only executes the first line and ignores all other lines in this file.
  5. Type "print bar". You should see "[10]". You don't currently because of this bug.
  6. Type "print baz". You should see "[3]". You don't currently because of this bug.
  7. Type "print foo2". You should see "['Test Item']". You don't currently because of this bug.

Original Issue: EXTRAS-71
Status: Deferred
Feature Interpretation:

Suggested Solution:

Actual Solution:

Severity: 4-Inconvenient
Version Control:
Environment: All
Linked:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions