Hi,
I am trying to make a sublime text plugin that will compile some C code, but it uses python for these plugins. I already have a method of using g++ for single files, but I was wondering if anyone knows how to do it for a make file, here is the code for the g++:
import sublime, sublimeplugin, os
class cs(sublimeplugin.TextCommand):
def run(self, view, args):
a=view.fileName()
f="g++ -o '"+a[:-2]+"' '"+a+"'"
print f
os.popen(f)
thanks in advance.