Closed mmjvox closed 1 year ago
@mmjvox The directory does not exist!
Of course, it is clear that this directory does not exist. 😁😀
Both of --sources
and --output
directories are exists.
But it is not clear why looks for the wrong path that does not exist
I updated my description.
I have no way of knowing the reason for your error. @mmjvox
I am also running into this issue. I want to supply an absolute path to `--sources``, but when I do, it appends the path to the current working directory.
The code is here: https://github.com/jaywcjlove/svgtofont/blob/51fd8c5b4b3aa1da211e612b36837b31f2bdc19a/src/cli.ts#L28
Here the --sources
value is appended to the current directory, which means that it is not possible to give an absolute path to --sources
and --output
. Is there perhaps a workaround for this?
@exil Thank you for your explanation, I get it. I fixed it
Upgrade v3.20.0
Im using cmake to generate font in build steps, cmake fills the input and output directories. There is no problem with cmake commands, This program (svgtofont) goes wrong with absolute paths.
cmake definitions:
package.json.in file:
generated package.json file:
error:
The directory does not exist! /home/.../project_build/home/.../project/fonts/svg
It appends input path to running path ( the result is someting like this
/home/.../project_build/home/.../project/fonts/svg
)A real example:
I even tested it without cmake and it still had this problem.