Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
enciyo committed Jun 11, 2024
1 parent 474a29f commit 3eb2115
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 36 deletions.
2 changes: 1 addition & 1 deletion che.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=1.0.18
version=1.0.19
python=3.11
Binary file removed che/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file removed che/__pycache__/binding.cpython-311.pyc
Binary file not shown.
Binary file removed che/__pycache__/main.cpython-311.pyc
Binary file not shown.
Binary file removed che/__pycache__/utils.cpython-311.pyc
Binary file not shown.
12 changes: 0 additions & 12 deletions che/ai/copilot/main.json

This file was deleted.

22 changes: 0 additions & 22 deletions che/ai/copilot/main.md

This file was deleted.

4 changes: 3 additions & 1 deletion che/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
import stat
import subprocess

from che.intercept.conversation import Conversation
Expand Down Expand Up @@ -33,6 +34,7 @@ def create_or_open_file(file_path, mode):
directory, filename = os.path.split(file_path)
if not os.path.exists(directory):
os.makedirs(directory)
os.chmod(directory, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)

if not os.path.exists(file_path):
with open(file_path, "w") as f:
Expand All @@ -41,7 +43,7 @@ def create_or_open_file(file_path, mode):
f.write("[]")
else:
f.write("")

os.chmod(file_path, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
return open(file_path, mode)


Expand Down

0 comments on commit 3eb2115

Please sign in to comment.