OLD | NEW |
1 # -*- coding: ascii -*- | 1 # -*- coding: ascii -*- |
2 # | 2 # |
3 # Copyright 2007, 2008, 2009, 2010, 2011 | 3 # Copyright 2007, 2008, 2009, 2010, 2011 |
4 # Andr\xe9 Malo or his licensors, as applicable | 4 # Andr\xe9 Malo or his licensors, as applicable |
5 # | 5 # |
6 # Licensed under the Apache License, Version 2.0 (the "License"); | 6 # Licensed under the Apache License, Version 2.0 (the "License"); |
7 # you may not use this file except in compliance with the License. | 7 # you may not use this file except in compliance with the License. |
8 # You may obtain a copy of the License at | 8 # You may obtain a copy of the License at |
9 # | 9 # |
10 # http://www.apache.org/licenses/LICENSE-2.0 | 10 # http://www.apache.org/licenses/LICENSE-2.0 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 else: | 42 else: |
43 fakeroot = None | 43 fakeroot = None |
44 if kwargs: | 44 if kwargs: |
45 raise TypeError("Unrecognized keyword parameters") | 45 raise TypeError("Unrecognized keyword parameters") |
46 | 46 |
47 script = _shell.native(script) | 47 script = _shell.native(script) |
48 argv = [_sys.executable, script] + list(args) | 48 argv = [_sys.executable, script] + list(args) |
49 if fakeroot: | 49 if fakeroot: |
50 argv.insert(0, fakeroot) | 50 argv.insert(0, fakeroot) |
51 return not _shell.spawn(*argv) | 51 return not _shell.spawn(*argv) |
OLD | NEW |