Merge pull request #1813 from dwfreed/patch-1

release: fix dropping _main suffix
This commit is contained in:
Maximilian Hils 2016-12-04 18:43:02 +01:00 committed by GitHub
commit 1fc1a17c61
1 changed files with 1 additions and 1 deletions

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", "")