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

Make scripts in config.yml relative to config.yml #4860

Merged
merged 2 commits into from Dec 4, 2023

Conversation

Speedlulu
Copy link
Contributor

Description

Make the paths to scripts found in config.yml relative to
the directory where config.yml is instead of where the command
is ran.

Checklist

  • I have updated tests where applicable.
  • I have added an entry to the CHANGELOG.

Copy link
Member

@mhils mhils left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! 🍰
I've left some very nitpicky comments below, looks great overall! 😃

mitmproxy/optmanager.py Outdated Show resolved Hide resolved
mitmproxy/optmanager.py Outdated Show resolved Hide resolved
test/mitmproxy/test_optmanager.py Outdated Show resolved Hide resolved
@mhils
Copy link
Member

mhils commented Dec 2, 2023 via email

@Speedlulu Speedlulu force-pushed the relative_config_path branch 6 times, most recently from f2176da to 73213f6 Compare December 3, 2023 00:18
Copy link
Member

@mhils mhils left a comment

Choose a reason for hiding this comment

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

Thanks! Relative $HOME is cursed, great catch. 😅

mitmproxy/optmanager.py Show resolved Hide resolved
test/mitmproxy/test_optmanager.py Outdated Show resolved Hide resolved
mitmproxy/optmanager.py Outdated Show resolved Hide resolved
Copy link
Member

@mhils mhils left a comment

Choose a reason for hiding this comment

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

Thanks for the quick turnaround! 😃

mitmproxy/optmanager.py Outdated Show resolved Hide resolved
Make the paths to scripts found in config.yml relative to
the directory where config.yml is instead of where the command
is ran.
Copy link
Member

@mhils mhils left a comment

Choose a reason for hiding this comment

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

Awesome, fantastic work! 😃 🚀 🚀 🚀

@mhils mhils merged commit ba84b6b into mitmproxy:main Dec 4, 2023
21 checks passed
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 this pull request may close these issues.

None yet

2 participants