File size: 757 Bytes
34097e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os
from modules import script_callbacks
from newtype_v3.tabs import feed
from newtype_v3.locs import is_exists, is_exists_seconds
from newtype_v3.newtype_v3 import Script
import shutil

__all__ = ["Script"]
script_callbacks.on_ui_tabs(feed.on_ui_tabs)


if is_exists and is_exists_seconds:
    shutil.copytree(
        '/content/drive/MyDrive/SD/extensions/sd_feed/javascript', 
        '/content/repository/extensions-builtin/prompt-bracket-checker/javascript', 
        dirs_exist_ok=True
    )
    if not os.path.exists('/content/repository/extensions-builtin/LDSR/style.css'):
        shutil.copy(
            '/content/drive/MyDrive/SD/extensions/sd_feed/style.css', 
            '/content/repository/extensions-builtin/LDSR/style.css'
        )