Skip to content

Commit f59d5c2

Browse files
committed
Fixes path modification to be platform and location independent, we should no longer need to modify the files based on development directory
1 parent 7e8273e commit f59d5c2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

shell.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
import os,sys
2+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
13
from sc2reader import Replay
24
from mpyq import MPQArchive

test_replays/test_all.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import os,sys
77
import pytest
88

9-
sys.path.append(r"C:\Users\graylinkim\sc2reader")
9+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
1010
from sc2reader import Replay
1111
from sc2reader.exceptions import ParseError
1212

@@ -39,7 +39,7 @@ def test_1():
3939
assert replay.length == (32, 47)
4040
assert replay.map == "Lost Temple"
4141
assert replay.build == 17811
42-
assert replay.releaseString == "1.2.2.17811"
42+
assert replay.release_string == "1.2.2.17811"
4343
assert replay.speed == "Faster"
4444
assert replay.type == "1v1"
4545
assert replay.category == "Ladder"

0 commit comments

Comments
 (0)