Skip to content

Commit fb2c3ca

Browse files
authored
Merge pull request josegonzalez#75 from slibby/slibby-patch-windows
update check_io() to allow scripts to run on Windows
2 parents 1d50a40 + 4f47850 commit fb2c3ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/github-backup

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,15 @@ def logging_subprocess(popenargs,
6969
"""
7070
child = subprocess.Popen(popenargs, stdout=subprocess.PIPE,
7171
stderr=subprocess.PIPE, **kwargs)
72+
if sys.platform == 'win32':
73+
log_info("Windows operating system detected - no subprocess logging will be returned")
7274

7375
log_level = {child.stdout: stdout_log_level,
7476
child.stderr: stderr_log_level}
7577

7678
def check_io():
79+
if sys.platform == 'win32':
80+
return
7781
ready_to_read = select.select([child.stdout, child.stderr],
7882
[],
7983
[],

0 commit comments

Comments
 (0)