changeset 2391 | 3315e621d7fb |
parent 2390 | 81116c5db60f |
child 2392 | aad985da14f7 |
--- a/etherlab/EthercatMaster.py Sat Sep 29 16:19:15 2018 +0300 +++ b/etherlab/EthercatMaster.py Sat Sep 29 16:23:20 2018 +0300 @@ -711,7 +711,7 @@ def _Generate_C(self, buildpath, locations): current_location = self.GetCurrentLocation() # define a unique name for the generated C file - location_str = "_".join(map(lambda x: str(x), current_location)) + location_str = "_".join(map(str, current_location)) Gen_Ethercatfile_path = os.path.join(buildpath, "ethercat_%s.c" % location_str)