This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function import(varargin) | |
% Import a package. Only entire packages can be imported currently. | |
error(nargchk(1,inf,nargin,'struct')); | |
% Import the packages one-by-one. | |
for i=1:nargin | |
[pkgname,names]=import1(varargin{i}); | |
% Pythonic specific case... | |
for j=1:length(names) | |
assignin('caller',char(names{j}),pyeval({[pkgname '.' char(names{j})]})); | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function refreshenv | |
{ | |
powershell -NonInteractive - <<EOF | |
\$filename="\$env:TEMP\refresh.env" | |
Write-Host("Updating environment session from chocolatey") | |
Set-ExecutionPolicy Bypass -Scope Process -Force | |
Import-Module "\$env:ChocolateyInstall\\helpers\\chocolateyProfile.psm1" | |
Update-SessionEnvironment | |
Write-Host("Scanning env") |