Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6652 beakerx.json priviliges changed to private #6654

Merged
merged 3 commits into from
Jan 19, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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