Skip to content

Import a Python file in a datanode code #527

@tathanhdinh

Description

@tathanhdinh

Hello,

I'm trying to separate business code from the GUI given by Chalk'it.

By that, I've put the business code in a Python script (named controller.py) in the same folder as the project file (i.e. xprjson file). Then in the Python script of a datanode, I've called:

import controller

but I've got error:

ModuleNotFoundError: No module named 'controller' .

Many thanks for any help.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions