[vlc-commits] stackhandler: simplify
Rafaël Carré
git at videolan.org
Fri Sep 7 16:13:57 CEST 2012
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Sep 7 16:13:06 2012 +0200| [50f07bc440eb438ee769a9dbac92a1d5098ab2e8] | committer: Rafaël Carré
stackhandler: simplify
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=50f07bc440eb438ee769a9dbac92a1d5098ab2e8
---
extras/misc/stackhandler.py | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/extras/misc/stackhandler.py b/extras/misc/stackhandler.py
index b3b2a81..75e62c3 100755
--- a/extras/misc/stackhandler.py
+++ b/extras/misc/stackhandler.py
@@ -33,9 +33,9 @@
#####################################################################
VLC_VERSION = "2.0.3"
-VLC_BIN = "/home/videolan/vlc/2.0.3/vlc-2.0.3/vlc.exe"
-VLC_BASE_DIR = "/home/videolan/vlc/2.0.3/vlc-2.0.3/"
-VLC_SYMBOLS_DIR = "/home/videolan/vlc/2.0.3/symbols-2.0.3/"
+VLC_BIN = "/home/videolan/vlc/" + VLC_VERSION + "/vlc-" VLC_VERSION + "/vlc.exe"
+VLC_BASE_DIR = "/home/videolan/vlc/" + VLC_VERSION + "/vlc-" + VLC_VERSION + "/"
+VLC_SYMBOLS_DIR = "/home/videolan/vlc/" + VLC_VERSION + "/symbols-" + VLC_VERSION + "/"
WORKDIR = "/srv/ftp/crashes-win32"
FILE_MATCH = r"^\d{14}$"
FILE_MAX_SIZE = 10000
@@ -271,14 +271,9 @@ def moveFile(filename, outdated = False):
### ENTRY POINT ###
-if len(sys.argv) == 1:
- print("Folder mode")
- batch = True
-if len(sys.argv) != 2:
+batch = len(sys.argv) != 2
+if batch:
print("Running in batch mode")
- batch = True
-else:
- batch = False
input_files = []
if not batch:
@@ -311,4 +306,3 @@ for input_file in input_files:
processFile(input_file)
except Exception as ex:
print(traceback.format_exc())
-
More information about the vlc-commits
mailing list