Skip to content

Commit b7ae9ce

Browse files
Force passmanager module_dir when none provided
1 parent 1499dd8 commit b7ae9ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythran/passmanager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"""
1313

1414
import gast as ast
15+
import os
1516
import re
1617

1718

@@ -185,7 +186,7 @@ class PassManager(object):
185186
'''
186187
def __init__(self, module_name, module_dir=None):
187188
self.module_name = module_name
188-
self.module_dir = module_dir
189+
self.module_dir = module_dir or os.getcwd()
189190
self._cache = {}
190191

191192
def gather(self, analysis, node, ctx=None):

0 commit comments

Comments
 (0)