Skip to content

function not found with error AttributeError: "'module' has no attribute 'pre_save'" #224

Open
@ghost

Description

I have the small script below that I try to test:

import sys

def pre_save(value, numb):
	if value == "value":
		return("accepted by Python script " + sys.version)
	else:
		return("refused by Python script" + sys.version)

When I do a py.RunSrc(ctx, pythonCode, "", nil), I get "AttributeError: "'module' has no attribute 'pre_save'""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions