As I understand it, there is a directory where the stdlib is, but it’s also possible to import packages in the current working directory and packages installed with pixi. What are the exact rules for this? What are the directories in the conda environment that Mojo looks for? Can it be controlled with environment variables? And also, why do we distribute the code with .mojopkg files instead of using plain zip, tar or source files directly?
You can use the -I
flag to specify import paths. mojo build | Modular
Thanks for the help. Is there an equivalents for the LSP?
Yep, there’s the exact same flag for the mojo-lsp-server
binary
I didn’t know it was possible to start the server by hand!
Most editors also allow adding arguments fed to the binary. Also, the VSCode extension has a setting to add include paths.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.