]> git.parisson.com Git - promaster.git/commitdiff
add nice 19 for process
authoryomguy <yomguy@parisson.com>
Fri, 14 Dec 2012 12:47:49 +0000 (13:47 +0100)
committeryomguy <yomguy@parisson.com>
Fri, 14 Dec 2012 12:47:49 +0000 (13:47 +0100)
process_batch.py

index fc9136282d760678523d4bb65c7ca372eedccfad..b620ffd54818ded5dcc9f6488fb15e11d7a69d97 100644 (file)
@@ -9,5 +9,5 @@ if __name__ == '__main__':
         path = dir + os.sep + filename
         flag = path + '.processed'
         if 'sh' in extension and not os.path.exists(flag):
-            os.system(path)
+            os.system('nice -n 19 ' + path)
             os.system('touch ' + flag)