Skip to content

Commit

Permalink
#6652 beakerx.json priviliges changed to private
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Mitusinski committed Jan 12, 2018
1 parent 57a656c commit b9d0b66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beakerx/beakerx/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from os import environ, path
from os import environ, path, chmod
from jupyter_core import paths
import json
import pathlib
Expand Down Expand Up @@ -43,6 +43,7 @@ def save_setting_to_file(content):
file = open(EnvironmentSettings.config_path, 'w+')
file.write(json.dumps(json.loads(content), indent=4, sort_keys=True))
file.close()
chmod(EnvironmentSettings.config_path, 0o600)

@staticmethod
def read_setting_from_file():
Expand Down

0 comments on commit b9d0b66

Please sign in to comment.