Update pyximport.py
authorxqat <github@qrc-designer.com>
Mon, 17 Jun 2013 16:13:18 +0000 (19:13 +0300)
committerxqat <github@qrc-designer.com>
Mon, 17 Jun 2013 16:13:18 +0000 (19:13 +0300)
this should be changed

pyximport/pyximport.py

index 911aeaf..4fd7fe9 100644 (file)
@@ -186,7 +186,7 @@ def build_module(name, pyxfilename, pyxbuild_dir=None, inplace=False, language_l
                                   reload_support=pyxargs.reload_support)
     assert os.path.exists(so_path), "Cannot find: %s" % so_path
     
-    junkpath = os.path.join(os.path.dirname(so_path), name+"_*") #very dangerous with --inplace ?
+    junkpath = os.path.join(os.path.dirname(so_path), name+"_*") #very dangerous with --inplace ? yes, indeed, trying to eat my files ;)
     junkstuff = glob.glob(junkpath)
     for path in junkstuff:
         if path!=so_path: