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
+ import os .path
44
45
from argparse import ArgumentParser , REMAINDER
45
46
46
47
try :
@@ -65,6 +66,10 @@ def main():
65
66
parser .add_argument ('--list-languages' , dest = 'list_languages' ,
66
67
action = 'store_true' , help = 'List all language '
67
68
'codes supported by OpenShot' )
69
+ parser .add_argument ('--path' , dest = 'py_path' ,
70
+ action = 'append' ,
71
+ help = 'Additional locations to search for modules '
72
+ '(PYTHONPATH). Can be used multiple times.' )
68
73
parser .add_argument ('-V' , '--version' , action = 'store_true' )
69
74
parser .add_argument ('remain' , nargs = REMAINDER )
70
75
@@ -82,6 +87,18 @@ def main():
82
87
print (" {:>12} {}" .format (lang [0 ],lang [1 ]))
83
88
sys .exit ()
84
89
90
+ if args .py_path :
91
+ for p in args .py_path :
92
+ try :
93
+ if os .path .exists (os .path .realpath (p )):
94
+ sys .path .insert (0 , os .path .realpath (p ))
95
+ print ("Added {} to PYTHONPATH" .format (os .path .realpath (p )))
96
+ else :
97
+ print ("{} does not exist" .format (os .path .realpath (p )))
98
+ except TypeError as ex :
99
+ print ("Bad path {}: {}" .format (p , ex ))
100
+ continue
101
+
85
102
if args .lang :
86
103
if args .lang in info .SUPPORTED_LANGUAGES :
87
104
info .CMDLINE_LANGUAGE = args .lang
0 commit comments