release: fix dropping _main suffix

This commit is contained in:
Doug Freed
2016-12-04 17:41:31 +00:00
parent 9697f5f656
commit 306431f0b8

View File

@@ -196,7 +196,7 @@ def make_bdist():
executable += ".exe"
# Remove _main suffix from mitmproxy executable
if executable.startswith("mitmproxy_main"):
if "_main" in executable:
shutil.move(
executable,
executable.replace("_main", "")