@@ -110,9 +110,9 @@ def command_freeze(
110
110
print (e )
111
111
return
112
112
113
- sconf = freezer .freeze (session )
114
- newconfig = freezer .inline (sconf )
115
- configparser = ConfigReader (newconfig )
113
+ frozen_workspace = freezer .freeze (session )
114
+ workspace = freezer .inline (frozen_workspace )
115
+ configparser = ConfigReader (workspace )
116
116
117
117
if not args .quiet :
118
118
print (
@@ -140,7 +140,8 @@ def command_freeze(
140
140
os .path .join (
141
141
get_workspace_dir (),
142
142
"{}.{}" .format (
143
- sconf .get ("session_name" ), args .workspace_format or "yaml"
143
+ frozen_workspace .get ("session_name" ),
144
+ args .workspace_format or "yaml" ,
144
145
),
145
146
)
146
147
)
@@ -183,18 +184,18 @@ def extract_workspace_format(
183
184
)
184
185
185
186
if workspace_format == "yaml" :
186
- newconfig = configparser .dump (
187
+ workspace = configparser .dump (
187
188
format = "yaml" , indent = 2 , default_flow_style = False , safe = True
188
189
)
189
190
elif workspace_format == "json" :
190
- newconfig = configparser .dump (format = "json" , indent = 2 )
191
+ workspace = configparser .dump (format = "json" , indent = 2 )
191
192
192
193
if args .answer_yes or prompt_yes_no ("Save to %s?" % dest ):
193
194
destdir = os .path .dirname (dest )
194
195
if not os .path .isdir (destdir ):
195
196
os .makedirs (destdir )
196
197
buf = open (dest , "w" )
197
- buf .write (newconfig )
198
+ buf .write (workspace )
198
199
buf .close ()
199
200
200
201
if not args .quiet :
0 commit comments