Debian Codegraph @

cset

raw symbols SCIP
1 #!/usr/bin/env python
2
3 __copyright__ = """
4 Copyright (C) 2007-2010 Novell Inc.
5 Author: Alex Tsariounov <[email protected]>
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as
9 published by the Free Software Foundation.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
20 ---------------------------------------------------------------------
21 Substrate code and ideas taken from the excellent stgit 0.13, see
22 https://gna.org/projects/stgit and http://www.procode.org/stgit/
23 Stacked GIT is under GPL V2 or later.
24 ---------------------------------------------------------------------
25 """
26
27 import sys, os
28
29 # Try to detect where it is run from and set prefix and the search path.
30 # It is assumed that the user installed cpuset using the --prefix= option
31 prefix, bin = os.path.split(sys.path[0])
32
33 if bin == 'bin' and prefix != sys.prefix:
34 sys.prefix = prefix
35 sys.exec_prefix = prefix
36
37 major, minor = sys.version_info[0:2]
38 local_path = [os.path.join(prefix, 'lib', 'python'),
39 os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor)),
40 os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor),
41 'site-packages')]
42 sys.path = local_path + sys.path
43
44 from cpuset.main import main
45
46 if __name__ == '__main__':
47 main()