Skip to content

Commit

Permalink
Switch os.system() to subprocess.call()
Browse files Browse the repository at this point in the history
  • Loading branch information
bgabor666 committed Feb 4, 2016
1 parent 463deac commit 986fe3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion csibe.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python

import os
import subprocess
import unittest

csibe_path = os.path.dirname(os.path.realpath(__file__))
build_directory = "build"
Expand All @@ -10,5 +12,5 @@

os.chdir(build_directory)

os.system("cmake {0}".format(csibe_path))
subprocess.call(["cmake", csibe_path])

0 comments on commit 986fe3f

Please sign in to comment.