From b85d9b86add29a64eec6a48f4a69054641213853 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 1 Jul 2012 08:55:21 -0500 Subject: [PATCH] use os.path.join instead of cowboying it --- extras/romstr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/romstr.py b/extras/romstr.py index b5e7d5ba8..b9c8efdbb 100644 --- a/extras/romstr.py +++ b/extras/romstr.py @@ -50,7 +50,7 @@ class RomStr(str): """ Loads labels from labels.json, or parses the source code file and generates new labels. """ - filename = os.path.dirname(__file__) + "/" + filename + filename = os.path.join(os.path.dirname(__file__), filename) # blank out the hash self.labels = {} @@ -75,7 +75,7 @@ class RomStr(str): # scan the asm source code for labels if generate_labels: - asm = open(os.path.dirname(__file__) + "/../main.asm", "r").read().split("\n") + asm = open(os.path.join(os.path.dirname(__file__), "../main.asm"), "r").read().split("\n") for line in asm: label = get_label_from_line(line)