Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
ea04b18c
Kaydet (Commit)
ea04b18c
authored
Haz 07, 2006
tarafından
Barış Metin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix previous commit
üst
8e295cd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
variables.py
pisi/actionsapi/variables.py
+10
-12
No files found.
pisi/actionsapi/variables.py
Dosyayı görüntüle @
ea04b18c
...
...
@@ -11,8 +11,7 @@
# Please read the COPYING file.
# Standard Python Modules
from
os
import
getenv
from
os
import
environ
import
os
from
copy
import
deepcopy
# Pisi-Core Modules
...
...
@@ -24,19 +23,18 @@ def exportFlags():
'''General flags used in actions API.'''
# first reset environ
environ
=
{}
environ
=
deepcopy
(
ctx
.
config
.
environ
)
os
.
environ
=
{}
os
.
environ
=
deepcopy
(
ctx
.
config
.
environ
)
# Build systems depend on these environment variables. That is why
# we export them instead of using as (instance) variables.
values
=
ctx
.
config
.
values
environ
[
'HOST'
]
=
values
.
build
.
host
environ
[
'CFLAGS'
]
=
values
.
build
.
cflags
environ
[
'CXXFLAGS'
]
=
values
.
build
.
cxxflags
environ
[
'LDFLAGS'
]
=
values
.
build
.
ldflags
environ
[
'USER_LDFLAGS'
]
=
values
.
build
.
ldflags
environ
[
'JOBS'
]
=
values
.
build
.
jobs
os
.
environ
[
'HOST'
]
=
values
.
build
.
host
os
.
environ
[
'CFLAGS'
]
=
values
.
build
.
cflags
os
.
environ
[
'CXXFLAGS'
]
=
values
.
build
.
cxxflags
os
.
environ
[
'LDFLAGS'
]
=
values
.
build
.
ldflags
os
.
environ
[
'USER_LDFLAGS'
]
=
values
.
build
.
ldflags
os
.
environ
[
'JOBS'
]
=
values
.
build
.
jobs
class
Env
(
object
):
'''General environment variables used in actions API'''
...
...
@@ -63,7 +61,7 @@ class Env(object):
# Using environment variables is somewhat tricky. Each time
# you need them you need to check for their value.
if
self
.
__vars
.
has_key
(
attr
):
return
getenv
(
self
.
__vars
[
attr
])
return
os
.
getenv
(
self
.
__vars
[
attr
])
else
:
return
None
...
...
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