root / image_creator / help / __init__.py @ 121f3bc0
History | View | Annotate | Download (1.8 kB)
1 | 121f3bc0 | Nikos Skalkotos | # -*- coding: utf-8 -*-
|
---|---|---|---|
2 | 121f3bc0 | Nikos Skalkotos | #
|
3 | 3251a62c | Nikos Skalkotos | # Copyright 2012 GRNET S.A. All rights reserved.
|
4 | 3251a62c | Nikos Skalkotos | #
|
5 | 3251a62c | Nikos Skalkotos | # Redistribution and use in source and binary forms, with or
|
6 | 3251a62c | Nikos Skalkotos | # without modification, are permitted provided that the following
|
7 | 3251a62c | Nikos Skalkotos | # conditions are met:
|
8 | 3251a62c | Nikos Skalkotos | #
|
9 | 3251a62c | Nikos Skalkotos | # 1. Redistributions of source code must retain the above
|
10 | 3251a62c | Nikos Skalkotos | # copyright notice, this list of conditions and the following
|
11 | 3251a62c | Nikos Skalkotos | # disclaimer.
|
12 | 3251a62c | Nikos Skalkotos | #
|
13 | 3251a62c | Nikos Skalkotos | # 2. Redistributions in binary form must reproduce the above
|
14 | 3251a62c | Nikos Skalkotos | # copyright notice, this list of conditions and the following
|
15 | 3251a62c | Nikos Skalkotos | # disclaimer in the documentation and/or other materials
|
16 | 3251a62c | Nikos Skalkotos | # provided with the distribution.
|
17 | 3251a62c | Nikos Skalkotos | #
|
18 | 3251a62c | Nikos Skalkotos | # THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
19 | 3251a62c | Nikos Skalkotos | # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
20 | 3251a62c | Nikos Skalkotos | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
21 | 3251a62c | Nikos Skalkotos | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
22 | 3251a62c | Nikos Skalkotos | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
23 | 3251a62c | Nikos Skalkotos | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
24 | 3251a62c | Nikos Skalkotos | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
25 | 3251a62c | Nikos Skalkotos | # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
26 | 3251a62c | Nikos Skalkotos | # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
27 | 3251a62c | Nikos Skalkotos | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
28 | 3251a62c | Nikos Skalkotos | # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
29 | 3251a62c | Nikos Skalkotos | # POSSIBILITY OF SUCH DAMAGE.
|
30 | 3251a62c | Nikos Skalkotos | #
|
31 | 3251a62c | Nikos Skalkotos | # The views and conclusions contained in the software and
|
32 | 3251a62c | Nikos Skalkotos | # documentation are those of the authors and should not be
|
33 | 3251a62c | Nikos Skalkotos | # interpreted as representing official policies, either expressed
|
34 | 3251a62c | Nikos Skalkotos | # or implied, of GRNET S.A.
|
35 | 3251a62c | Nikos Skalkotos | |
36 | 121f3bc0 | Nikos Skalkotos | """This package hosts the help files of the programe."""
|
37 | 121f3bc0 | Nikos Skalkotos | |
38 | 3251a62c | Nikos Skalkotos | import sys |
39 | 3251a62c | Nikos Skalkotos | import os |
40 | 3251a62c | Nikos Skalkotos | |
41 | f99fe99d | Nikos Skalkotos | |
42 | 3251a62c | Nikos Skalkotos | def get_help_file(name): |
43 | 121f3bc0 | Nikos Skalkotos | """Returns the full path of a helpfile"""
|
44 | 3251a62c | Nikos Skalkotos | dirname = os.path.dirname(sys.modules[__name__].__file__) |
45 | 3251a62c | Nikos Skalkotos | return "%s%s%s.rst" % (dirname, os.sep, name) |
46 | 3251a62c | Nikos Skalkotos | |
47 | 3251a62c | Nikos Skalkotos | # vim: set sta sts=4 shiftwidth=4 sw=4 et ai : |