1
1
#!/usr/bin/env python3
2
2
3
- """
3
+ """
4
4
@file
5
5
@brief This file is used to launch OpenShot
6
6
@author Jonathan Thomas <[email protected] >
7
7
@author Noah Figg <[email protected] >
8
-
8
+
9
9
@mainpage OpenShot Video Editor 2.0
10
-
10
+
11
11
Welcome to the OpenShot Video Editor 2.0 PyQt5 documentation. OpenShot was developed to
12
12
make high-quality video editing and animation solutions freely available to the world. With a focus
13
13
on stability, performance, and ease-of-use, we believe OpenShot is the best cross-platform,
14
14
open-source video editing application in the world!
15
-
16
- This documentation is auto-generated by Doxygen, using the doxypy Python filter. If you are
17
- interested in how OpenShot Video Editor is designed, feel free to dive in, because this
15
+
16
+ This documentation is auto-generated by Doxygen, using the doxypy Python filter. If you are
17
+ interested in how OpenShot Video Editor is designed, feel free to dive in, because this
18
18
documentation was built just for you. If you are not a developer, please feel free to visit
19
- our main website (http://www.openshot.org/download/), and download a copy today for Linux, Mac, or Windows.
19
+ our main website (http://www.openshot.org/download/), and download a copy today for Linux, Mac, or Windows.
20
20
21
21
@section LICENSE
22
-
22
+
23
23
Copyright (c) 2008-2018 OpenShot Studios, LLC
24
24
(http://www.openshotstudios.com). This file is part of
25
25
OpenShot Video Editor (http://www.openshot.org), an open-source project
26
26
dedicated to delivering high quality video editing and animation solutions
27
27
to the world.
28
-
28
+
29
29
OpenShot Video Editor is free software: you can redistribute it and/or modify
30
30
it under the terms of the GNU General Public License as published by
31
31
the Free Software Foundation, either version 3 of the License, or
32
32
(at your option) any later version.
33
-
33
+
34
34
OpenShot Video Editor is distributed in the hope that it will be useful,
35
35
but WITHOUT ANY WARRANTY; without even the implied warranty of
36
36
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37
37
GNU General Public License for more details.
38
-
38
+
39
39
You should have received a copy of the GNU General Public License
40
40
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
41
41
"""
42
42
43
43
import sys
44
- from argparse import ArgumentParser , REMAINDER
44
+ import argparse
45
45
46
46
try :
47
47
from classes import info
52
52
from classes import info
53
53
print ("Loaded modules from installed directory: %s" % info .PATH )
54
54
55
- from classes .app import OpenShotApp
56
-
57
55
58
56
def main ():
59
57
""""Initialize settings (not implemented) and create main window/application."""
60
58
61
- parser = ArgumentParser (description = 'OpenShot version ' + info .SETUP ['version' ])
59
+ parser = argparse . ArgumentParser (description = 'OpenShot version ' + info .SETUP ['version' ])
62
60
parser .add_argument ('-l' , '--lang' , action = 'store' ,
63
61
help = 'language code for interface (overrides '
64
62
'preferences and system environment)' )
65
63
parser .add_argument ('--list-languages' , dest = 'list_languages' ,
66
64
action = 'store_true' , help = 'List all language '
67
65
'codes supported by OpenShot' )
68
66
parser .add_argument ('-V' , '--version' , action = 'store_true' )
69
- parser .add_argument ('remain' , nargs = REMAINDER )
67
+ parser .add_argument ('remain' , nargs = argparse .REMAINDER ,
68
+ help = argparse .SUPPRESS )
70
69
71
70
args = parser .parse_args ()
72
71
@@ -90,6 +89,8 @@ def main():
90
89
sys .exit (- 1 )
91
90
92
91
# Create Qt application, pass any unprocessed arguments
92
+ from classes .app import OpenShotApp
93
+
93
94
argv = [sys .argv [0 ]]
94
95
for arg in args .remain :
95
96
argv .append (arg )
0 commit comments