45 @param filename name of the project file |
44 @param filename name of the project file |
46 @type str |
45 @type str |
47 @return flag indicating a successful write |
46 @return flag indicating a successful write |
48 @rtype bool |
47 @rtype bool |
49 """ |
48 """ |
50 name = os.path.splitext(os.path.basename(filename))[0] |
|
51 |
|
52 projectDict = {} |
49 projectDict = {} |
53 projectDict["header"] = { |
50 projectDict["header"] = { |
54 "comment": f"eric project file for project {name}", |
51 "comment": "eric project file for project {0}".format( |
|
52 self.__project.getProjectName()), |
55 "copyright": "Copyright (C) {0} {1}, {2}".format( |
53 "copyright": "Copyright (C) {0} {1}, {2}".format( |
56 time.strftime('%Y'), |
54 time.strftime('%Y'), |
57 self.__project.pdata["AUTHOR"], |
55 self.__project.pdata["AUTHOR"], |
58 self.__project.pdata["EMAIL"]) |
56 self.__project.pdata["EMAIL"]) |
59 } |
57 } |