Skip to content

Commit

Permalink
Merge pull request #45 from vm-asd2015/master
Browse files Browse the repository at this point in the history
[MRG] Fix issue #43
  • Loading branch information
foarsitter committed Jul 15, 2023
2 parents 97eed26 + f5f6de1 commit 2a8e6ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion excalibur/executors/celery_executor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import traceback
import subprocess
import sys

from celery import Celery

Expand All @@ -22,7 +23,7 @@
@app.task
def execute_command(command):
try:
subprocess.check_call(command, stderr=subprocess.STDOUT, close_fds=True)
subprocess.check_call(command, stderr=subprocess.STDOUT, close_fds=(sys.platform != 'win32'))
except Exception as e:
traceback.print_exc(e)

Expand Down
3 changes: 2 additions & 1 deletion excalibur/executors/sequential_executor.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import traceback
import subprocess
from concurrent.futures import ProcessPoolExecutor
import sys

from .base_executor import BaseExecutor


def execute_command(command):
try:
subprocess.check_call(command, stderr=subprocess.STDOUT, close_fds=True)
subprocess.check_call(command, stderr=subprocess.STDOUT, close_fds=(sys.platform != 'win32'))
except FileNotFoundError:
# TODO: PyInstaller does not package console_scripts
# https://github.com/pyinstaller/pyinstaller/issues/305
Expand Down

0 comments on commit 2a8e6ca

Please sign in to comment.