Skip to content

Commit

Permalink
Separating the statements in the with
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus0824 committed Jul 14, 2017
1 parent b64c0a0 commit 139d8ed
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,9 @@
import biothings
(biothings_dir, init_file) = os.path.split(biothings.__file__)
(src_dir, bt_dir) = os.path.split(biothings_dir)
with open(os.path.join(biothings_dir, 'config.py'), 'w') as biothings_config_file,
open(os.path.join(src_dir, 'config.py'), 'w') as root_config_file:
# emulate a dummy config file for now
biothings_config_file.write('logger = ""\nHIPCHAT_CONFIG=""\nLOG_FOLDER=""')
root_config_file.write('logger = ""\nHIPCHAT_CONFIG=""\nLOG_FOLDER=""')
# use a dummy config for sphinx build for now....
dummy_config = 'logger = ""\nHIPCHAT_CONFIG = ""\nLOG_FOLDER = ""'
with open(os.path.join(biothings_dir, 'config.py'), 'w') as biothings_config_file:
biothings_config_file.write(dummy_config)
with open(os.path.join(src_dir, 'config.py'), 'w') as root_config_file:
root_config_file.write(dummy_config)

0 comments on commit 139d8ed

Please sign in to comment.