Zulip Chat Archive
Stream: new members
Topic: import file from outside src
Martin Dvořák (Dec 12 2022 at 11:14):
Can I import a file located outside of src
directory in my project?
Eric Wieser (Dec 12 2022 at 11:56):
Not meaningfully, no. Why do you want to?
Eric Wieser (Dec 12 2022 at 11:57):
You can rename the src directory by editing the toml file, including setting it to .
which eliminates the directory entirely; but it's not recommended to change it
Martin Dvořák (Dec 12 2022 at 12:03):
Eric Wieser said:
Not meaningfully, no. Why do you want to?
I wanted to separate my code (i.e., written by me) from a kinda-imported code (code written by other people, which is just copypasted into my repository and slightly edited, because it was easier than messing with actual imports into my project).
Last updated: Dec 20 2023 at 11:08 UTC