]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: enhance the CacheCopyFile method arg names
authorSteven Shi <steven.shi@intel.com>
Mon, 21 Oct 2019 06:51:49 +0000 (14:51 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 10 Dec 2019 02:07:12 +0000 (02:07 +0000)
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>
BaseTools/Source/Python/AutoGen/ModuleAutoGen.py

index fce00c3ee75dfd179267f800d8fee06846807508..eb52f40a9d07b8e3688ffa3b14f923d204b0d573 100755 (executable)
@@ -1650,9 +1650,9 @@ class ModuleAutoGen(AutoGen):
 \r
         self.IsAsBuiltInfCreated = True\r
 \r
-    def CacheCopyFile(self, OriginDir, CopyDir, File):\r
-        sub_dir = os.path.relpath(File, CopyDir)\r
-        destination_file = os.path.join(OriginDir, sub_dir)\r
+    def CacheCopyFile(self, DestDir, SourceDir, File):\r
+        sub_dir = os.path.relpath(File, SourceDir)\r
+        destination_file = os.path.join(DestDir, sub_dir)\r
         destination_dir = os.path.dirname(destination_file)\r
         CreateDirectory(destination_dir)\r
         try:\r