mirror of
https://github.com/imarkoff/Marble-shell-theme.git
synced 2025-09-30 19:44:42 -07:00
TESTS TESTS ADDED MORE TEST TESTED GRESOURCES TESTS TESTS I LOVE TESTS SO MUCH
- Fully covered gresource orchestrator and it helpers with tests - Use abstract command runner INSTEAD OF SUBPROCESS in gresources - Replaced some subprocesses by builtin functions
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import subprocess
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from scripts.utils.logger.logger import LoggerFactory
|
||||
|
||||
@@ -13,11 +14,8 @@ class GresourceMover:
|
||||
move_line = self.logger_factory.create_logger()
|
||||
move_line.update("Moving gresource files...")
|
||||
|
||||
subprocess.run(["cp", "-f",
|
||||
self.source_file,
|
||||
self.destination_file],
|
||||
check=True)
|
||||
|
||||
subprocess.run(["chmod", "644", self.destination_file], check=True)
|
||||
os.makedirs(os.path.dirname(self.destination_file), exist_ok=True)
|
||||
shutil.copyfile(self.source_file, self.destination_file)
|
||||
os.chmod(self.destination_file, 0o644)
|
||||
|
||||
move_line.success("Moved gresource files.")
|
||||
|
Reference in New Issue
Block a user