File size: 609 Bytes
b5a064f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os

from modules import cmd_opts, ui

# ใชใ‚“ใ‹็Ÿฅใ‚‰ใ‚“ใŒๆนงใ„ใฆๅ‡บใฆใใ‚‹ ".DS_Store"ใ€€ใ‚’็„ก่ฆ–ใ™ใ‚‹ใ€‚
# ใ“ใ“ใซใ“ใ‚“ใชใ‚ณใƒผใƒ‰ใ‚’็ฝฎใในใใ‹ใฏใ‚ใ‹ใ‚‰ใชใ„ใ‘ใฉโ€ฆ
_list_dir = os.listdir

def listdir4mac(path):
    return [file for file in _list_dir(path) if not file.startswith(".")]

os.listdir = listdir4mac


def webui():
    app = ui.create_ui()
    app.queue(64)
    app, local_url, share_url = app.launch(
        server_name=cmd_opts.opts.host,
        server_port=cmd_opts.opts.port,
        share=cmd_opts.opts.share,
    )


if __name__ == "__main__":
    webui()