@@ -82,7 +82,7 @@ function set_credentials_file(input_creds::Dict)
8282# userhome/.plotly/.credentials. This includes username and api_key.
8383
8484 # plotly credentials file
85- userhome = get ( ENV , " HOME " , " " )
85+ userhome = homedir ( )
8686 plotly_credentials_folder = joinpath (userhome, " .plotly" )
8787 plotly_credentials_file = joinpath (plotly_credentials_folder, " .credentials" )
8888
@@ -113,7 +113,7 @@ function set_config_file(input_config::Dict)
113113# userhome/.plotly/.config. This includes the plotly_domain, and plotly_api_domain.
114114
115115 # plotly configuration file
116- userhome = get ( ENV , " HOME " , " " )
116+ userhome = homedir ( )
117117 plotly_config_folder = joinpath (userhome, " .plotly" )
118118 plotly_config_file = joinpath (plotly_config_folder, " .config" )
119119
@@ -143,7 +143,7 @@ function get_credentials_file()
143143# Load user credentials as a Dict
144144
145145 # plotly credentials file
146- userhome = get ( ENV , " HOME " , " " )
146+ userhome = homedir ( )
147147 plotly_credentials_folder = joinpath (userhome, " .plotly" )
148148 plotly_credentials_file = joinpath (plotly_credentials_folder, " .credentials" )
149149
@@ -167,7 +167,7 @@ function get_config_file()
167167# Load endpoint configuration as a Dict
168168
169169 # plotly configuration file
170- userhome = get ( ENV , " HOME " , " " )
170+ userhome = homedir ( )
171171 plotly_config_folder = joinpath (userhome, " .plotly" )
172172 plotly_config_file = joinpath (plotly_config_folder, " .config" )
173173
0 commit comments