Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pythonw.exe opens console window #284

Copy link
Copy link
@CSchulzeTLK

Description

@CSchulzeTLK
Issue body actions

If a module using versioneer is imported from in a pythonw.exe, then a console window is visible for each call to git.exe/git.cmd. The subprocess.Popen call should set the startupinfo argument.

This code will open a console window when executed by pythonw.exe:

import subprocess
command = ['git', '--help']
subprocess.Popen(command).wait()

This code does not open a console window:

import subprocess
command = ['git', '--help']
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
subprocess.Popen(command, startupinfo=startupinfo).wait()

subprocess.STARTUPINFO is only available on windows.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.