-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.m
More file actions
32 lines (21 loc) · 680 Bytes
/
Copy pathsetup.m
File metadata and controls
32 lines (21 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
if ~exist("is_setup", "var"); is_setup = false; end
if ~is_setup
pip_libraries = {"CoolProp", "MatlabBlenderIO", "MatRocket"};
for index = 1:numel(pip_libraries)
library = pip_libraries{index};
[failiure, library_status] = system("pip show "+library);
if failiure
system("pip install "+library);
[failiure, library_status] = system("pip show "+library);
end
library_path = strip(extractBetween(string(library_status), "Location: ", "Requires:"))+"\"+library;
addpath(genpath(library_path));
disp(library +" loaded successfully.")
end
system("pip list")
addpath(".\Rocket_source\")
addpath(".\Output\")
addpath(".\Models\")
addpath(".\lib\")
end
is_setup = true;