Skip to content

Commit

Permalink
Fix splitting of path
Browse files Browse the repository at this point in the history
  • Loading branch information
jellespijker committed Jan 13, 2024
1 parent a24232b commit a9e035d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gcodeanalyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ jobs:
if ext.lower() != ".gcode":
continue
infilename = os.path.join(folder_path, filename)
with open(infilename.split(".")[0] + ".time", "r") as f:
with open(infilename.rsplit(".", 1)[0] + ".time", "r") as f:
timer = float(re.match(r"^.*?cpu (\d+\.\d+)", f.read())[1])
frame = GCodeAnalyzer.DataFrame(infilename)
Expand Down

0 comments on commit a9e035d

Please sign in to comment.