Skip to content
Browse files

fix setting of directive 'set_initial_path' in pyximport after renami…

…ng it in the compiler
  • Loading branch information...
1 parent 0013771 commit 8fb46d27a4a7433055acf86639f9835f64b4587e @scoder scoder committed Aug 15, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 pyximport/pyxbuild.py
View
6 pyximport/pyxbuild.py
@@ -60,9 +60,9 @@ def pyx_to_dll(filename, ext = None, force_rebuild = 0,
if ext.name == '__init__' or ext.name.endswith('.__init__'):
# package => provide __path__ early
if not hasattr(ext, 'cython_directives'):
- ext.cython_directives = {'set_initial_path_from_source' : True}
- elif 'set_initial_path_from_source' not in ext.cython_directives:
- ext.cython_directives['set_initial_path_from_source'] = True
+ ext.cython_directives = {'set_initial_path' : 'SOURCEFILE'}
+ elif 'set_initial_path' not in ext.cython_directives:
+ ext.cython_directives['set_initial_path'] = 'SOURCEFILE'
if HAS_CYTHON and build_in_temp:
args.append("--pyrex-c-in-temp")

0 comments on commit 8fb46d2

Please sign in to comment.
Something went wrong with that request. Please try again.