kopia lustrzana https://github.com/gd3kr/BlenderGPT
fixed bug that caused openai import to fail
rodzic
bdb5394ce4
commit
ed10061b5c
12
__init__.py
12
__init__.py
|
@ -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"
|
||||
|
|
Ładowanie…
Reference in New Issue