Skip to content

Commit 7c77a77

Browse files
committed
Remove os.path in elemwise_openmp_speedup.py
1 parent 89b6967 commit 7c77a77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytensor/misc/elemwise_openmp_speedup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import sys
44
from locale import getpreferredencoding
55
from optparse import OptionParser
6+
from pathlib import Path
67

78
from pytensor.configdefaults import config
89

@@ -25,7 +26,7 @@
2526

2627
def runScript(N):
2728
script = "elemwise_time_test.py"
28-
path = os.path.dirname(os.path.abspath(__file__))
29+
path = Path(__file__).parent
2930
proc = subprocess.Popen(
3031
["python", script, "--script", "-N", str(N)],
3132
stdout=subprocess.PIPE,

0 commit comments

Comments
 (0)