diff --git a/scripts/tracewin b/scripts/tracewin
index 634be6f5cab5d018bcc3e18679abce0d2637f884..009c93c3e04ca5ef9625d23c2828381712bf474d 100644
--- a/scripts/tracewin
+++ b/scripts/tracewin
@@ -52,20 +52,20 @@ if not os.path.isfile(args.project):
     raise ValueError("Project file does not exist")
 
 if args.lattice:
-    cmd.append("dat_file=" + args.lattice)
+    cmd.append(f"dat_file={args.lattice}")
 
 for arg in ["dst_file1", "dst_file2", "current1", "current2", "nbr_part1", "nbr_part2", "energy1", "energy2", "freq1", "freq2"]:
     attr = getattr(args, arg)
     if attr:
-        cmd.append(arg + "=" + attr)
+        cmd.append(f"{arg}={attr}")
 
 if args.outpath:
     if not os.path.isdir(args.outpath):
         print("WARNING: output directory does not exist, creating..")
         os.makedirs(args.outpath)
-    cmd.append("path_cal='" + os.path.abspath(args.outpath) + "'")
+    cmd.append(f"path_cal='{os.path.abspath(args.outpath)}'")
 if args.seed:
-    cmd.append("random_seed=" + str(args.seed))
+    cmd.append(f"random_seed={args.seed}")
 
 print(" ".join(cmd))
 if args.run: