| 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | # Copyright (C) 2008-2010 Adam Olsen |
| 4 | # |
| 5 | # This program is free software; you can redistribute it and/or modify |
| 6 | # it under the terms of the GNU General Public License as published by |
| 7 | # the Free Software Foundation; either version 2, or (at your option) |
| 8 | # any later version. |
| 9 | # |
| 10 | # This program is distributed in the hope that it will be useful, |
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | # GNU General Public License for more details. |
| 14 | # |
| 15 | # You should have received a copy of the GNU General Public License |
| 16 | # along with this program; if not, write to the Free Software |
| 17 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 18 | # |
| 19 | # |
| 20 | # The developers of the Exaile media player hereby grant permission |
| 21 | # for non-GPL compatible GStreamer and Exaile plugins to be used and |
| 22 | # distributed together with GStreamer and Exaile. This permission is |
| 23 | # above and beyond the permissions granted by the GPL license by which |
| 24 | # Exaile is covered. If you modify this code, you may extend this |
| 25 | # exception to your version of the code, but you are not obligated to |
| 26 | # do so. If you do not wish to do so, delete this exception statement |
| 27 | # from your version. |
| 28 | # |
| 29 | # |
| 30 | # The developers of the Exaile media player hereby grant permission |
| 31 | # for non-GPL compatible GStreamer and Exaile plugins to be used and |
| 32 | # distributed together with GStreamer and Exaile. This permission is |
| 33 | # above and beyond the permissions granted by the GPL license by which |
| 34 | # Exaile is covered. If you modify this code, you may extend this |
| 35 | # exception to your version of the code, but you are not obligated to |
| 36 | # do so. If you do not wish to do so, delete this exception statement |
| 37 | # from your version. |
| 38 | |
| 39 | import sys |
| 40 | import os |
| 41 | |
| 42 | sys.path.append(os.getcwd()) |
| 43 | |
| 44 | from IPython.Shell import IPShellEmbed |
| 45 | from xl import main |
| 46 | |
| 47 | exaile = main.Exaile() |
| 48 | |
| 49 | ipshell = IPShellEmbed(user_ns=dict(exaile=exaile)) |
| 50 | ipshell() |