Skip to content

Conversation

@Flamefire
Copy link
Contributor

@Flamefire Flamefire commented Nov 24, 2025

In most cases start_dir is unset/empty.
When passing it to os.path.join it leads to /topdir/ which could cause issues when using the template as %(startdir)s/subdir as a double-slash might be treated specially.

@Flamefire Flamefire force-pushed the start_dir_slash branch 2 times, most recently from 7f1447f to 9d7adab Compare November 24, 2025 13:29
In most cases `start_dir` is unset/empty.
When passing it to `os.path.join` it leads to `/topdir/` which could
cause issues when using the template as `%(startdir)s/subdir`
as a double-slash might be treated specially.
@boegel boegel changed the title Don't append empty component to start_dir Don't append empty component to start_dir in EasyBlock.guess_start_dir Dec 3, 2025
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel added this to the next release (5.2.0) milestone Dec 3, 2025
@boegel boegel added the bug fix label Dec 3, 2025
@boegel boegel merged commit 1f9aad6 into easybuilders:develop Dec 3, 2025
39 checks passed
@Flamefire Flamefire deleted the start_dir_slash branch December 3, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants