sen de güvenli iş yap
This commit is contained in:
@@ -106,14 +106,9 @@ def generate_ld_so_conf(envdict):
|
|||||||
return tmp + "\n"
|
return tmp + "\n"
|
||||||
|
|
||||||
def update_file(path, content):
|
def update_file(path, content):
|
||||||
if os.path.exists(path):
|
|
||||||
data = file(path).read()
|
|
||||||
if data == content:
|
|
||||||
return False
|
|
||||||
f = file(path, "w")
|
f = file(path, "w")
|
||||||
f.write(content)
|
f.write(content)
|
||||||
f.close()
|
f.close()
|
||||||
return True
|
|
||||||
|
|
||||||
def update_environment(prefix):
|
def update_environment(prefix):
|
||||||
join = os.path.join
|
join = os.path.join
|
||||||
|
|||||||
Reference in New Issue
Block a user