Commit fca0779 Anand
committed
1 parent 6e99b8f commit fca0779 Copy full SHA for fca0779
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 198
198
Print ["Download Complete!" ];
199
199
200
200
(* Extract Archive *)
201
+ newDirectory = FileNameJoin [{directory ,"MASS-Toolbox-" <> version }];
202
+ Quiet @ DeleteFile [FileNameJoin [{directory ,"pax_global_header" }]];
203
+ Quiet @ DeleteDirectory [newDirectory ,DeleteContents -> True ];
201
204
Print ["Please wait. Extracting Files..." ];
202
205
task2 = ExtractArchive [fileName ,directory ];
203
206
WaitAsynchronousTask [task2 ];
206
209
If [OptionValue [Install ]== True ,
207
210
Module [{installNotebook ,nb ,cell },
208
211
Print ["Installing Toolbox..." ];
209
- newDirectory = FileNameJoin [{directory ,"MASS-Toolbox-" <> version }];
210
212
installNotebook = FileNameJoin [{newDirectory ,"Installer.nb" }];
211
213
nb = NotebookOpen [installNotebook ,Visible -> False ];
212
214
SelectionMove [nb ,Next ,Cell ,3 ];
Original file line number Diff line number Diff line change 45
45
Print ["Download Complete!" ];
46
46
47
47
(* Extract files *)
48
+ newDirectory = FileNameJoin [{directory ,"MASS-Toolbox-" <> version }];
48
49
Quiet @ DeleteFile [FileNameJoin [{directory ,"pax_global_header" }]];
50
+ Quiet @ DeleteDirectory [newDirectory ,DeleteContents -> True ];
49
51
Print ["Please wait. Extracting Files..." ];
50
52
task2 = ExtractArchive [fileName ,directory ];
51
53
WaitAsynchronousTask [task2 ];
52
54
53
55
(* Install new Toolbox *)
54
56
Print ["Installing Toolbox..." ];
55
- newDirectory = FileNameJoin [{directory ,"MASS-Toolbox-" <> version }];
56
57
installNotebook = FileNameJoin [{newDirectory ,"Installer.nb" }];
57
58
nb = NotebookOpen [installNotebook ,Visible -> False ];
58
59
SelectionMove [nb ,Next ,Cell ,3 ];
You can’t perform that action at this time.
0 commit comments