update master.c path to correspond to where pip install will put it

This commit is contained in:
Cody Horst 2017-12-08 20:17:56 -08:00
parent f0fbd41b96
commit d02720cc84

View File

@ -83,7 +83,7 @@ class CKernel(Kernel):
mastertemp = tempfile.mkstemp(suffix='.out')
os.close(mastertemp[0])
self.master_path = mastertemp[1]
filepath = path.join(path.dirname(path.realpath(__file__)), '..', 'resources', 'master.c')
filepath = path.join(path.dirname(path.realpath(__file__)), 'resources', 'master.c')
subprocess.call(['gcc', filepath, '-std=c11', '-rdynamic', '-ldl', '-o', self.master_path])
def cleanup_files(self):