Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jens Krüger
Lima
Commits
32b7417b
Commit
32b7417b
authored
Aug 24, 2012
by
Sebastien Petitdemange
Browse files
Fixed a small bug in init script
parent
f67f5f21
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/__init__.py
View file @
32b7417b
...
...
@@ -33,20 +33,22 @@ for d in csadmin_dirs:
break
if
get_os
is
not
None
:
compat_plat
=
os
.
popen
(
get_os
).
readline
().
strip
()
plat
=
None
compat_plat_list
=
compat_plat
.
split
()
for
aux_plat
in
compat_plat_list
:
if
aux_plat
.
strip
()
in
os
.
listdir
(
root_name
):
plat
=
aux_plat
break
if
plat
is
None
:
raise
ImportError
,
(
'Could not find Lima directory for %s '
'(nor compat. %s) platform(s) at %s'
%
(
compat_plat_list
[
0
],
compat_plat_list
[
1
:],
root_name
))
lima_plat
=
os
.
path
.
join
(
root_name
,
plat
)
__path__
.
insert
(
0
,
lima_plat
)
if
compat_plat
:
plat
=
None
compat_plat_list
=
compat_plat
.
split
()
for
aux_plat
in
compat_plat_list
:
if
aux_plat
.
strip
()
in
os
.
listdir
(
root_name
):
plat
=
aux_plat
break
if
plat
is
None
:
raise
ImportError
,
(
'Could not find Lima directory for %s '
'(nor compat. %s) platform(s) at %s'
%
(
compat_plat_list
[
0
],
compat_plat_list
[
1
:],
root_name
))
lima_plat
=
os
.
path
.
join
(
root_name
,
plat
)
__path__
.
insert
(
0
,
lima_plat
)
else
:
get_os
=
None
# This mandatory variable is systematically overwritten by 'make install'
os
.
environ
[
'LIMA_LINK_STRICT_VERSION'
]
=
'MINOR'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment