OpenShot Video Editor  2.0.0
launch.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
2 
3 ##
4 #
5 # @file
6 # @brief This file is used to launch OpenShot
7 # @author Jonathan Thomas <jonathan@openshot.org>
8 # @author Noah Figg <eggmunkee@hotmail.com>
9 #
10 # @mainpage OpenShot Video Editor 2.0
11 #
12 # Welcome to the OpenShot Video Editor 2.0 PyQt5 documentation. OpenShot was developed to
13 # make high-quality video editing and animation solutions freely available to the world. With a focus
14 # on stability, performance, and ease-of-use, we believe OpenShot is the best cross-platform,
15 # open-source video editing application in the world!
16 #
17 # This documentation is auto-generated by Doxygen, using the doxypy Python filter. If you are
18 # interested in how OpenShot Video Editor is designed, feel free to dive in, because this
19 # documentation was built just for you. If you are not a developer, please feel free to visit
20 # our main website (http://www.openshot.org/download/), and download a copy today for Linux, Mac, or Windows.
21 #
22 # @section LICENSE
23 #
24 # Copyright (c) 2008-2016 OpenShot Studios, LLC
25 # (http://www.openshotstudios.com). This file is part of
26 # OpenShot Video Editor (http://www.openshot.org), an open-source project
27 # dedicated to delivering high quality video editing and animation solutions
28 # to the world.
29 #
30 # OpenShot Video Editor is free software: you can redistribute it and/or modify
31 # it under the terms of the GNU General Public License as published by
32 # the Free Software Foundation, either version 3 of the License, or
33 # (at your option) any later version.
34 #
35 # OpenShot Video Editor is distributed in the hope that it will be useful,
36 # but WITHOUT ANY WARRANTY; without even the implied warranty of
37 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 # GNU General Public License for more details.
39 #
40 # You should have received a copy of the GNU General Public License
41 # along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
42 #
43 
44 import sys
45 
46 try:
47  from classes import info
48  print("Loaded modules from current directory: %s" % info.PATH)
49 except ImportError:
50  from openshot_qt.classes import info
51  sys.path.append(info.PATH)
52  print("Loaded modules from installed directory: %s" % info.PATH)
53 
54 from classes.app import OpenShotApp
55 from classes.logger import log
56 
57 
58 ##
59 # "Initialize settings (not implemented) and create main window/application.
60 def main():
61 
62  # Display version and exit (if requested)
63  if "--version" in sys.argv:
64  print("OpenShot version %s" % info.SETUP['version'])
65  exit()
66 
67  log.info("------------------------------------------------")
68  log.info(" OpenShot (version %s)" % info.SETUP['version'])
69  log.info("------------------------------------------------")
70 
71  # Create Qt application
72  app = OpenShotApp(sys.argv)
73 
74  # Run and return result
75  sys.exit(app.run())
76 
77 
78 if __name__ == "__main__":
79  main()
def main()
"Initialize settings (not implemented) and create main window/application.
Definition: launch.py:60