Sets the environ path in the run_command function to avoid problems in the update process
@@ -143,9 +143,6 @@ class PioInstall(object):
create_path(CACHE_PATH)
- # defining default env paths
- environ['PATH'] = get_env_paths()
-
def cached_file(self):
"""Cached File
@@ -449,6 +446,9 @@ def run_command(command, error='', cwd=None, prepare=False):
'''
import subprocess
+ # defining default env paths
+ environ['PATH'] = get_env_paths()
+
if(prepare):
command = prepare_command(command, verbose=False)
else:
