Jump to content
Korean Random
Genba_Kantoku_s

Small question: how the @xvm.export function is defined and governed?

Recommended Posts

I'm just curious where the "@xvm.export" function (the one which makes a function to be callable by {{}} macro in xvm config) is defined and governed.

 

I only found class XvmNamespace from xvm_pymacro/__init__.py , in which a function export() is defined, but to use the @xvm.export function I really don't need to import xvm_pymacro XvmNamespace . And I can't figure out why.

 

I think I listed all the relevant source code folders to my VSCode workspace, but still, the VSCode cannot find where the @xvm.export is defined. But they are still all working normally.

 

 

(I know the pylance of VSCode makes many false errors in XVM development because of various reasons, including the difference between Python 2.7 and Python 3.11, just curious)

Edited by Genba_Kantoku_s

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...