-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmain.py
More file actions
30 lines (24 loc) · 758 Bytes
/
main.py
File metadata and controls
30 lines (24 loc) · 758 Bytes
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
28
29
30
#!/usr/bin/env python3
"""
Restim Funscript Processor
A GUI application for processing funscript files for electrostimulation devices.
"""
import sys
import logging
import os
from pathlib import Path
# Set VLC plugin path when running as a frozen PyInstaller exe
if getattr(sys, 'frozen', False):
os.environ.setdefault('VLC_PLUGIN_PATH',
os.path.join(sys._MEIPASS, 'plugins'))
# Add the current directory to the Python path
sys.path.insert(0, str(Path(__file__).parent))
from ui.main_window import main
if __name__ == "__main__":
# Set up logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
# Start the GUI application
main()