Skip to content

Commit 8cf359f

Browse files
Add files via upload
deleting unnecessary changes
1 parent 5f92d5e commit 8cf359f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

plotly/plotly_aux/getuserdir.m

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
function userDir = getuserdir
2-
% GETUSERDIR Retrieve the user directory
3-
% - Under Windows returns the %APPDATA% directory
4-
% - For other OSs uses java to retrieve the user.home directory
5-
6-
if ispc
7-
% userDir = winqueryreg('HKEY_CURRENT_USER',...
8-
% ['Software\Microsoft\Windows\CurrentVersion\' ...
9-
% 'Explorer\Shell Folders'],'Personal');
10-
userDir = getenv('appdata');
11-
else
12-
userDir = char(java.lang.System.getProperty('user.home'));
1+
function userDir = getuserdir
2+
% GETUSERDIR Retrieve the user directory
3+
% - Under Windows returns the %APPDATA% directory
4+
% - For other OSs uses java to retrieve the user.home directory
5+
6+
if ispc
7+
% userDir = winqueryreg('HKEY_CURRENT_USER',...
8+
% ['Software\Microsoft\Windows\CurrentVersion\' ...
9+
% 'Explorer\Shell Folders'],'Personal');
10+
userDir = getenv('appdata');
11+
else
12+
userDir = char(java.lang.System.getProperty('user.home'));
1313
end

0 commit comments

Comments
 (0)