File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -40,24 +40,6 @@ def __get_project_path():
4040 script_dir = script_path .parent # Directory containing the script
4141 return script_dir .parent
4242
43- @staticmethod
44- def __source_script (script_path ):
45- if platform .system () == "Windows" :
46- return {}
47- command = f"bash -c 'source { script_path } && env'"
48- result = subprocess .run (command , stdout = subprocess .PIPE , shell = True , text = True )
49- if result .returncode == 0 :
50- # Parse the output environment variables
51- env_vars = {}
52- for line in result .stdout .splitlines ():
53- if '=' in line :
54- key , value = line .split ("=" , 1 )
55- env_vars [key ] = value
56- return env_vars
57- else :
58- print (f"Failed to source script: { script_path } " )
59- return {}
60-
6143 def setup_env (self ):
6244 if (Path (self .__get_project_path ()) / "install" ).exists ():
6345 self .work_dir = Path (self .__get_project_path ()) / "install" / "bin"
You can’t perform that action at this time.
0 commit comments