##// END OF EJS Templates
__init__ should not be an executable script.
Fernando Perez -
Show More
@@ -1,59 +1,58 b''
1 #!/usr/bin/env python
2 # encoding: utf-8
1 # encoding: utf-8
3 """
2 """
4 IPython.
3 IPython.
5
4
6 IPython is a set of tools for interactive and exploratory computing in Python.
5 IPython is a set of tools for interactive and exploratory computing in Python.
7 """
6 """
8 #-----------------------------------------------------------------------------
7 #-----------------------------------------------------------------------------
9 # Copyright (c) 2008-2010, IPython Development Team.
8 # Copyright (c) 2008-2010, IPython Development Team.
10 # Copyright (c) 2001-2007, Fernando Perez <fernando.perez@colorado.edu>
9 # Copyright (c) 2001-2007, Fernando Perez <fernando.perez@colorado.edu>
11 # Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>
10 # Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>
12 # Copyright (c) 2001, Nathaniel Gray <n8gray@caltech.edu>
11 # Copyright (c) 2001, Nathaniel Gray <n8gray@caltech.edu>
13 #
12 #
14 # Distributed under the terms of the Modified BSD License.
13 # Distributed under the terms of the Modified BSD License.
15 #
14 #
16 # The full license is in the file COPYING.txt, distributed with this software.
15 # The full license is in the file COPYING.txt, distributed with this software.
17 #-----------------------------------------------------------------------------
16 #-----------------------------------------------------------------------------
18
17
19 #-----------------------------------------------------------------------------
18 #-----------------------------------------------------------------------------
20 # Imports
19 # Imports
21 #-----------------------------------------------------------------------------
20 #-----------------------------------------------------------------------------
22 from __future__ import absolute_import
21 from __future__ import absolute_import
23
22
24 import os
23 import os
25 import sys
24 import sys
26
25
27 #-----------------------------------------------------------------------------
26 #-----------------------------------------------------------------------------
28 # Setup everything
27 # Setup everything
29 #-----------------------------------------------------------------------------
28 #-----------------------------------------------------------------------------
30
29
31 # Don't forget to also update setup.py when this changes!
30 # Don't forget to also update setup.py when this changes!
32 if sys.version[0:3] < '2.6':
31 if sys.version[0:3] < '2.6':
33 raise ImportError('Python Version 2.6 or above is required for IPython.')
32 raise ImportError('Python Version 2.6 or above is required for IPython.')
34
33
35
34
36 # Make it easy to import extensions - they are always directly on pythonpath.
35 # Make it easy to import extensions - they are always directly on pythonpath.
37 # Therefore, non-IPython modules can be added to extensions directory.
36 # Therefore, non-IPython modules can be added to extensions directory.
38 # This should probably be in ipapp.py.
37 # This should probably be in ipapp.py.
39 sys.path.append(os.path.join(os.path.dirname(__file__), "extensions"))
38 sys.path.append(os.path.join(os.path.dirname(__file__), "extensions"))
40
39
41 #-----------------------------------------------------------------------------
40 #-----------------------------------------------------------------------------
42 # Setup the top level names
41 # Setup the top level names
43 #-----------------------------------------------------------------------------
42 #-----------------------------------------------------------------------------
44
43
45 from .config.loader import Config
44 from .config.loader import Config
46 from .core import release
45 from .core import release
47 from .core.application import Application
46 from .core.application import Application
48 from .frontend.terminal.embed import embed
47 from .frontend.terminal.embed import embed
49 from .core.error import TryNext
48 from .core.error import TryNext
50 from .core.interactiveshell import InteractiveShell
49 from .core.interactiveshell import InteractiveShell
51 from .testing import test
50 from .testing import test
52 from .utils.sysinfo import sys_info
51 from .utils.sysinfo import sys_info
53
52
54 # Release data
53 # Release data
55 __author__ = ''
54 __author__ = ''
56 for author, email in release.authors.itervalues():
55 for author, email in release.authors.itervalues():
57 __author__ += author + ' <' + email + '>\n'
56 __author__ += author + ' <' + email + '>\n'
58 __license__ = release.license
57 __license__ = release.license
59 __version__ = release.version
58 __version__ = release.version
General Comments 0
You need to be logged in to leave comments. Login now