os.path --> osp to match the import (#4681)
authorChristian Clauss <cclauss@me.com>
Fri, 10 Jan 2020 22:54:27 +0000 (23:54 +0100)
committerTianqi Chen <tqchen@users.noreply.github.com>
Fri, 10 Jan 2020 22:54:27 +0000 (14:54 -0800)
rust/frontend/tests/basics/src/tvm_add.py

index 32a605b..287084b 100755 (executable)
@@ -39,7 +39,7 @@ def main(target, out_dir):
 
     fadd.save(osp.join(out_dir, 'test_add.o'))
     if target == 'cuda':
-        fadd.imported_modules[0].save(os.path.join(out_dir, 'test_add.ptx'))
+        fadd.imported_modules[0].save(osp.join(out_dir, 'test_add.ptx'))
     cc.create_shared(
         osp.join(out_dir, 'test_add.so'), [osp.join(out_dir, 'test_add.o')])