diff options
author | Steven Shi <steven.shi@intel.com> | 2019-10-21 14:51:49 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2019-12-10 02:07:12 +0000 |
commit | 3bfbc915074a45f4d9c61aa2b698a62f1a24124e (patch) | |
tree | 2bb65cb2e3adb5d2d96c5383a49fe7928f016c72 /BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | |
parent | 91f6c533f8e9c49ffd098e9167724596ecfd7410 (diff) | |
download | edk2-3bfbc915074a45f4d9c61aa2b698a62f1a24124e.tar.gz edk2-3bfbc915074a45f4d9c61aa2b698a62f1a24124e.tar.bz2 edk2-3bfbc915074a45f4d9c61aa2b698a62f1a24124e.zip |
BaseTools: enhance the CacheCopyFile method arg names
Enhance the CacheCopyFile method arg names to be more
clear and readable
Signed-off-by: Steven Shi <steven.shi@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/ModuleAutoGen.py')
-rwxr-xr-x | BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py index fce00c3ee7..eb52f40a9d 100755 --- a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py +++ b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py @@ -1650,9 +1650,9 @@ class ModuleAutoGen(AutoGen): self.IsAsBuiltInfCreated = True
- def CacheCopyFile(self, OriginDir, CopyDir, File):
- sub_dir = os.path.relpath(File, CopyDir)
- destination_file = os.path.join(OriginDir, sub_dir)
+ def CacheCopyFile(self, DestDir, SourceDir, File):
+ sub_dir = os.path.relpath(File, SourceDir)
+ destination_file = os.path.join(DestDir, sub_dir)
destination_dir = os.path.dirname(destination_file)
CreateDirectory(destination_dir)
try:
|