Replies: 3 comments 2 replies
-
I guess what you mean is to import projectB files from projectA, right? One way is to maintain the same
kcl.mod
projecta/
myconfig.k
projectb/
configschema/
configfile1.k
configfile2.k The code of import projectb.configschema
foo = configschema.Foo {} # You need to complete the maintenance of projectB in advance, such as a separate git repo
kpm init projectA && kpm add projectB && kpm run |
Beta Was this translation helpful? Give feedback.
-
Thank you. That works! However, I'd like to use kcl files everywhere because they're very helpful. It would be great if, instead of placing |
Beta Was this translation helpful? Give feedback.
-
That will work. Thank you. KCL is fantastic. |
Beta Was this translation helpful? Give feedback.
-
I'd like to use kcl file in one project by referencing a kcl.mod folder in another project. Is this possible?
I tried setting an environment variable
KCL_MOD
but that did not work. It would be helpful to manage a kcl project in one folder and reference it from other projects. Is this possible?Beta Was this translation helpful? Give feedback.
All reactions