Commit 50f07bc4 authored by Rafaël Carré's avatar Rafaël Carré

stackhandler: simplify

parent 4dd84882
...@@ -33,9 +33,9 @@ ...@@ -33,9 +33,9 @@
##################################################################### #####################################################################
VLC_VERSION = "2.0.3" VLC_VERSION = "2.0.3"
VLC_BIN = "/home/videolan/vlc/2.0.3/vlc-2.0.3/vlc.exe" VLC_BIN = "/home/videolan/vlc/" + VLC_VERSION + "/vlc-" VLC_VERSION + "/vlc.exe"
VLC_BASE_DIR = "/home/videolan/vlc/2.0.3/vlc-2.0.3/" VLC_BASE_DIR = "/home/videolan/vlc/" + VLC_VERSION + "/vlc-" + VLC_VERSION + "/"
VLC_SYMBOLS_DIR = "/home/videolan/vlc/2.0.3/symbols-2.0.3/" VLC_SYMBOLS_DIR = "/home/videolan/vlc/" + VLC_VERSION + "/symbols-" + VLC_VERSION + "/"
WORKDIR = "/srv/ftp/crashes-win32" WORKDIR = "/srv/ftp/crashes-win32"
FILE_MATCH = r"^\d{14}$" FILE_MATCH = r"^\d{14}$"
FILE_MAX_SIZE = 10000 FILE_MAX_SIZE = 10000
...@@ -271,14 +271,9 @@ def moveFile(filename, outdated = False): ...@@ -271,14 +271,9 @@ def moveFile(filename, outdated = False):
### ENTRY POINT ### ### ENTRY POINT ###
if len(sys.argv) == 1: batch = len(sys.argv) != 2
print("Folder mode") if batch:
batch = True
if len(sys.argv) != 2:
print("Running in batch mode") print("Running in batch mode")
batch = True
else:
batch = False
input_files = [] input_files = []
if not batch: if not batch:
...@@ -311,4 +306,3 @@ for input_file in input_files: ...@@ -311,4 +306,3 @@ for input_file in input_files:
processFile(input_file) processFile(input_file)
except Exception as ex: except Exception as ex:
print(traceback.format_exc()) print(traceback.format_exc())
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment