11import sys
2- import logging
32import os
43import cv2
54
6- from funscript_editor .utils .logging import setup_logging
5+ import funscript_editor .utils .logging as logging
76from funscript_editor .ui .funscript_editor_window import FunscriptEditorWindow
87from funscript_editor .ui .funscript_generator_window import FunscriptGeneratorWindow
98from funscript_editor .utils .config import VERSION
1312
1413def show_editor () -> None :
1514 """ Show the Funscript Editor Main Window """
16- setup_logging (silent = False )
17- logging .info ("Python Funscript Editor %s" , VERSION )
18- logging .info ("Startup Path: %s" , str (os .getcwd ()))
15+ logging .setup_logging (silent = False )
16+ logger = logging .getLogger (__name__ )
17+ logger .info ("Python Funscript Editor %s" , VERSION )
18+ logger .info ("Startup Path: %s" , str (os .getcwd ()))
1919 app = QtWidgets .QApplication (sys .argv )
2020 widget = FunscriptEditorWindow ()
2121 widget .show ()
@@ -37,10 +37,11 @@ def generate_funscript(
3737 output_file (str): path for the output file
3838 include_multiaxis_options (bool): include options for multiaxis output
3939 """
40- setup_logging (silent = True )
41- logging .info ("Python Funscript Generator %s" , VERSION )
42- logging .info ("Startup Path: %s" , str (os .getcwd ()))
43- logging .info ("Args: video_file=%s, start_time=%s, end_time=%s, output_file=%s" , \
40+ logging .setup_logging (silent = True )
41+ logger = logging .getLogger (__name__ )
42+ logger .info ("Python Funscript Generator %s" , VERSION )
43+ logger .info ("Startup Path: %s" , str (os .getcwd ()))
44+ logger .info ("Args: video_file=%s, start_time=%s, end_time=%s, output_file=%s" , \
4445 str (video_file ), str (start_time ), str (end_time ), str (output_file ))
4546 app = QtWidgets .QApplication (sys .argv )
4647 _ = FunscriptGeneratorWindow (video_file , start_time , end_time , output_file , include_multiaxis_options )
0 commit comments