setup_skytools: if -q is given, be quiet
authorMarko Kreen <markokr@gmail.com>
Thu, 18 Oct 2012 10:41:34 +0000 (13:41 +0300)
committerMarko Kreen <markokr@gmail.com>
Thu, 18 Oct 2012 12:42:28 +0000 (15:42 +0300)
setup_skytools.py

index 5440068d0f36ee986646b0315a156289b487bac8..58576fe886d098e5c33e0e079a5f2366058704e5 100755 (executable)
@@ -122,7 +122,8 @@ def fixscript(fn, dstdir, sfx):
         return
     dfn = os.path.join(dstdir, fn)
     dfn2 = os.path.join(dstdir, fn2)
-    print("Renaming %s -> %s" % (dfn, fn2))
+    if '-q' not in sys.argv:
+        print("Renaming %s -> %s" % (dfn, fn2))
     if sys.platform == 'win32' and os.path.isfile(dfn2):
         os.remove(dfn2)
     os.rename(dfn, dfn2)