Skip to content

Commit

Permalink
Use relative path for extension loading
Browse files Browse the repository at this point in the history
  • Loading branch information
gitmylo committed Oct 5, 2023
1 parent c9f1889 commit b68406c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webui/extensionlib/extensionmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class Extension:
def __init__(self, ext_name, load_states):
self.enabled = (ext_name not in load_states.keys()) or load_states[ext_name]
self.extname = ext_name
self.path = os.path.abspath(os.path.join(ext_folder, ext_name))
# self.abspath = os.path.abspath(os.path.join(ext_folder, ext_name))
self.path = os.path.join(ext_folder, ext_name)
self.main_file = os.path.join(self.path, 'main.py')
self.req_file = os.path.join(self.path, 'requirements.py') # Optional
self.style_file = os.path.join(self.path, 'style.py')
Expand Down

0 comments on commit b68406c

Please sign in to comment.