Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative path to input file is doubled on output file #28

Closed
glenn-horton-smith opened this issue Sep 1, 2020 · 0 comments
Closed

Relative path to input file is doubled on output file #28

glenn-horton-smith opened this issue Sep 1, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@glenn-horton-smith
Copy link
Contributor

If a relative path is used for the input file name, the output directory has that relative path effectively doubled.
E.g., if the input filename is ../test.txt, the output is written to ../../test.zip, relative to the current directory in which text2qti was run.
The problem occurs because main() changes into the directory of the input file before running, but then also prepends the directory part of the input file to the output file.
This has no effect on absolute paths, but doubles the relative path.
Will make a PR shortly with the fix. (Correctly, this time.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants