42"""Find the new path where the history file will be updated based on the week number and branch.
+ 43
+ 44 This will normally the same path as used to copy from net drive to local drive.
+ 45 But for new branch / week number, the path will be different. """
+ 46branch_dir_list=self.branch_name.split(".")
+ 47fordir_inbranch_dir_list:
+ 48self.path=os.path.join(self.path,dir_)
+ 49if(self.path.endswith("\\0")):
+ 50self.path=self.path[0:-2]
+ 51returnstr(self.path)
+
54""" Finds the path of the history file based on input
+ 55 branch and week number. """
+ 56branch_dir_list=self.branch_name.split(".")
+ 57fordir_inbranch_dir_list:
+ 58if(notos.path.exists(os.path.join(self.path,dir_))):
+ 59break
+ 60else:
+ 61self.path=os.path.join(self.path,dir_)
+ 62if(self.path.endswith("\\0")):
+ 63self.path=self.path[0:-2]
+