Skip to content

Commit be57027

Browse files
committed
Add load_dotenv in kernel_manager process.
1 parent e4a367e commit be57027

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Secrets
22
.env
3+
.dev.env
34

45
# Program related
56
process_pids/

bkenv

Lines changed: 0 additions & 4 deletions
This file was deleted.

gpt_code_ui/kernel_program/kernel_manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
from time import sleep
1414
from jupyter_client import BlockingKernelClient
1515

16+
from dotenv import load_dotenv
17+
load_dotenv('.env')
18+
1619
import gpt_code_ui.kernel_program.utils as utils
1720
import gpt_code_ui.kernel_program.config as config
1821

gpt_code_ui/kernel_program/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414

1515
from flask import Flask, request, jsonify
1616
from flask_cors import CORS # Import the CORS library
17-
from dotenv import load_dotenv
1817

18+
from dotenv import load_dotenv
19+
load_dotenv('.env')
1920

2021
import gpt_code_ui.kernel_program.kernel_manager as kernel_manager
2122
import gpt_code_ui.kernel_program.config as config
2223
import gpt_code_ui.kernel_program.utils as utils
2324

24-
load_dotenv('.env')
2525

2626
APP_PORT = int(os.environ.get("API_PORT", 5010))
2727

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='gpt_code_ui',
10-
version='0.42.21',
10+
version='0.42.22',
1111
description="An Open Source version of ChatGPT Code Interpreter",
1212
long_description=long_description,
1313
long_description_content_type='text/markdown', # This field specifies the format of the `long_description`.

0 commit comments

Comments
 (0)