Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
6298c72c
Commit
6298c72c
authored
Sep 12, 2019
by
Stephan Seitz
Browse files
Close pystencils' config file after writing
parent
ad26bd81
Pipeline
#17951
passed with stage
in 2 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils/cpu/cpujit.py
View file @
6298c72c
...
...
@@ -173,7 +173,8 @@ def read_config():
config
=
recursive_dict_update
(
config
,
loaded_config
)
else
:
create_folder
(
config_path
,
True
)
json
.
dump
(
config
,
open
(
config_path
,
'w'
),
indent
=
4
)
with
open
(
config_path
,
'w'
)
as
f
:
json
.
dump
(
config
,
f
,
indent
=
4
)
if
config
[
'cache'
][
'object_cache'
]
is
not
False
:
config
[
'cache'
][
'object_cache'
]
=
os
.
path
.
expanduser
(
config
[
'cache'
][
'object_cache'
]).
format
(
pid
=
os
.
getpid
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment