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

[LUA] Lua Scripts that change the cwd also affect Aegisub #166

Open
Totto16 opened this issue Jul 23, 2022 · 0 comments · May be fixed by #188
Open

[LUA] Lua Scripts that change the cwd also affect Aegisub #166

Totto16 opened this issue Jul 23, 2022 · 0 comments · May be fixed by #188

Comments

@Totto16
Copy link

Totto16 commented Jul 23, 2022

I found out, that loading relative files didn't work when invoking aegisub from command line, so after some debugging, I found out, that this is caused by the DependencyControl module Logger.moon, that invokes lfs.chdir it changes the current working directory (cwd). Then aegisubs internal cwd also gets changed, which is an issue, since the relative files get resolved into absolute ones, AFTER loading lua plugins, now it isn't that hard to save the cwd before the loading of lua and then use it later in resolvinf relative files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant