fixed bug that caused openai import to fail

pull/39/head
AaryaGadekar 2023-03-28 01:02:29 +05:30
rodzic bdb5394ce4
commit ed10061b5c
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -3,6 +3,12 @@ import os
import bpy
import bpy.props
import re
# Add the 'libs' folder to the Python path
libs_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "lib")
if libs_path not in sys.path:
sys.path.append(libs_path)
import openai
from .utilities import *
@ -46,12 +52,6 @@ for c in range(0,count):
```"""
# Add the 'libs' folder to the Python path
libs_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "lib")
if libs_path not in sys.path:
sys.path.append(libs_path)
class GPT4_OT_DeleteMessage(bpy.types.Operator):
bl_idname = "gpt4.delete_message"