bts
This commit is contained in:
parent
0aef3aaeb1
commit
617eb43106
@ -95,7 +95,12 @@ class BaseTester:
|
|||||||
with open(
|
with open(
|
||||||
join(self.path, file.filename), "wb"
|
join(self.path, file.filename), "wb"
|
||||||
) as fs:
|
) as fs:
|
||||||
fs.write(get_bytes(file.fs_id).replace(b"\r\n", b"\n"))
|
bts = get_bytes(file.fs_id)
|
||||||
|
if file.filename == 'checker.sh':
|
||||||
|
bts = bts.replace(b"\r\n", b"\r")
|
||||||
|
else:
|
||||||
|
bts = bts.replace(b"\r\n", b"\n")
|
||||||
|
fs.write(bts)
|
||||||
print("Files copied")
|
print("Files copied")
|
||||||
for file in listdir(self.path):
|
for file in listdir(self.path):
|
||||||
chmod(join(self.path, file), 0o777)
|
chmod(join(self.path, file), 0o777)
|
||||||
|
Loading…
Reference in New Issue
Block a user