eric6/Project/ProjectFile.py

branch
jsonfiles
changeset 8012
ecf45f723038
parent 8006
c4110b8b5931
child 8015
09b24828d787
--- a/eric6/Project/ProjectFile.py	Wed Jan 27 18:27:52 2021 +0100
+++ b/eric6/Project/ProjectFile.py	Wed Jan 27 18:29:25 2021 +0100
@@ -8,7 +8,6 @@
 """
 
 import json
-import os
 import time
 import typing
 
@@ -47,11 +46,10 @@
         @return flag indicating a successful write
         @rtype bool
         """
-        name = os.path.splitext(os.path.basename(filename))[0]
-        
         projectDict = {}
         projectDict["header"] = {
-            "comment": f"eric project file for project {name}",
+            "comment": "eric project file for project {0}".format(
+                self.__project.getProjectName()),
             "copyright": "Copyright (C) {0} {1}, {2}".format(
                 time.strftime('%Y'),
                 self.__project.pdata["AUTHOR"],

eric ide

mercurial