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

Always use CWD as DLL search path on Windows #1628

Merged
merged 2 commits into from
Feb 25, 2024

Conversation

heinezen
Copy link
Member

The command working directory is now always used as a search path, even if --add-dll-search-path is not specified in the CLI.

This should fix or mitigate issues like #1624 .

@heinezen heinezen added os: windows Windows-specific issue lang: python Done in Python code bugfix Restores intended behavior labels Feb 23, 2024
Copy link
Member

@TheJJ TheJJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phew, this may have unexpected side effects especially when the game is installed and one launches from a cwd where a suitable dll is in. shouldn't this rather be the path wherethe main executable is in?

@heinezen
Copy link
Member Author

Didn't thought about that and I see your point. I changed it, so that the path of the directory of __main__.py is in is used. Would this be okay?

@TheJJ
Copy link
Member

TheJJ commented Feb 25, 2024

guess so, if the dll is in that dir? let's see if it helps :)

@TheJJ TheJJ merged commit 2f1ea21 into SFTtech:master Feb 25, 2024
13 checks passed
@heinezen heinezen deleted the fix/dll_search_path branch September 7, 2024 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Restores intended behavior lang: python Done in Python code os: windows Windows-specific issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants