Delete unused Error
[rainbowstream.git] / rainbowstream / c_image.py
index 96cab29fd89aae50b0572e9aa33695f8f0b2d317..f05015024f41daf28346d41ad932324c182a8792 100644 (file)
@@ -15,8 +15,8 @@ def call_c():
     library = expanduser('~/.image.so')
     sauce = join(dirname(__file__), 'image.c')
     if not exists(library) or getmtime(sauce) > getmtime(library):
-        build = "gcc -fPIC -shared -o %s %s" % (library, sauce)
-        assert os.system(build + " >/dev/null 2>&1") == 0
+        build = "cc -fPIC -shared -o %s %s" % (library, sauce)
+        os.system(build + " >/dev/null 2>&1")
     image_c = ctypes.cdll.LoadLibrary(library)
     image_c.init()
     return image_c.rgb_to_ansi