Skip to content
Snippets Groups Projects
Commit 8ce44924 authored by James Alexander Clark PhD's avatar James Alexander Clark PhD
Browse files

Mdc extractor

parent ee295bea
No related branches found
No related tags found
1 merge request!11Master
......@@ -96,6 +96,7 @@ Note that we could use many more env variables for similar purposes if needed.
import re
import os,sys
import socket
import tarfile
#
# Preliminary setup
......@@ -105,6 +106,16 @@ executable=sys.argv[2]
if not os.path.exists(outputDir): os.makedirs(outputDir)
geolocation=open("{0}/{1}_cehostname.txt".format(outputDir, executable), "w")
#
# Extract MDC data if present
#
try:
with tarfile.open('mdcs.tar.bz2', 'r') as tar:
tar.extractall()
except:
pass
#
# Geolocation
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment