Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ async def delete_item(websocket, key,project_name, path, connected):
|
|
100 |
|
101 |
async def get_file_content(websocket, key,project_name, path,name,connected):
|
102 |
|
103 |
-
file_path = path
|
104 |
|
105 |
try:
|
106 |
with open(file_path, 'r', encoding='utf-8') as file:
|
|
|
100 |
|
101 |
async def get_file_content(websocket, key,project_name, path,name,connected):
|
102 |
|
103 |
+
file_path = os.path.join(os.getcwd(), 'projects', key,project_name, path)
|
104 |
|
105 |
try:
|
106 |
with open(file_path, 'r', encoding='utf-8') as file:
|