AutonLabTruth commited on
Commit
9e11722
1 Parent(s): 7be8652

Added Shell Argument to Subprocess

Browse files
Files changed (2) hide show
  1. .gitignore +5 -0
  2. pysr/sr.py +1 -1
.gitignore CHANGED
@@ -8,3 +8,8 @@ trials*
8
  **/__pycache__
9
  build
10
  dist
 
 
 
 
 
 
8
  **/__pycache__
9
  build
10
  dist
11
+ *.idea/
12
+ *.vs/*
13
+ *.pyproj
14
+ *.sln
15
+ pysr/.vs/
pysr/sr.py CHANGED
@@ -447,7 +447,7 @@ const varMap = {'["' + '", "'.join(variable_names) + '"]'}"""
447
  global_extra_sympy_mappings = extra_sympy_mappings
448
 
449
  print("Running on", ' '.join(command))
450
- process = subprocess.Popen(command, stdout=subprocess.PIPE, bufsize=1)
451
  try:
452
  while True:
453
  line = process.stdout.readline()
 
447
  global_extra_sympy_mappings = extra_sympy_mappings
448
 
449
  print("Running on", ' '.join(command))
450
+ process = subprocess.Popen(command, stdout=subprocess.PIPE, bufsize=1, shell=True)
451
  try:
452
  while True:
453
  line = process.stdout.readline()