-
I'm having difficulty configuring |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To set the # Build paths inside the project like this: str(ROOT_DIR("subdir"))
ROOT_DIR = environ.Path(__file__) - 3 This will create a Once you have defined your SVG_DIRS = [str(ROOT_DIR("dist/img/svg"))] This will set |
Beta Was this translation helpful? Give feedback.
To set the
SVG_DIRS
variable, you can first define yourROOT_DIR
using theenviron.Path
like so:This will create a
Path
object representing the directory three levels above the current file. Note that the number of levels may vary depending on your file structure.Once you have defined your
ROOT_DIR
, you can setSVG DIRS
like this:This will set
SVG_DIRS
to a list containing thesvg
directory located indist/img
relative to theROOT_DIR
.