From 652d25294d0a08ce2af9b52d4ff3dcf774b25f79 Mon Sep 17 00:00:00 2001
From: Roland Haas <rhaas@illinois.edu>
Date: Thu, 16 May 2019 12:09:02 -0500
Subject: [PATCH] POPWER: use os.split rather than string split

---
 POWER/power.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/POWER/power.py b/POWER/power.py
index 7301822..e85bc69 100755
--- a/POWER/power.py
+++ b/POWER/power.py
@@ -390,7 +390,7 @@ if __name__ == "__main__":
 
     for sim_path in paths:
             main_dir = sim_path
-            sim = sim_path.split("/")[-1]
+            sim = os.path.split(sim_path)[-1]
 
             simdirs = main_dir+"/output-????/%s/" % (sim)
             f0 = getCutoffFrequency(sim)
-- 
GitLab