From 09e4015b0227587ffd84140c4cff6fbb2880e751 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Mon, 13 Feb 2012 13:31:44 -0500 Subject: [PATCH] replacing bash tar call with a tarfiles call --- envsetup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/envsetup.py b/envsetup.py index dff97a9..3ea7533 100644 --- a/envsetup.py +++ b/envsetup.py @@ -7,6 +7,7 @@ import os from subprocess import call import platform import urllib2 +import tarfile #global vars vimrcurl = "https://raw.github.com/staticsafe/dotfiles/master/.vimrc" @@ -79,7 +80,10 @@ def checksandactions(): print ".vim dir already exists, skipping download!" else: urldownload(confurl = vimdirurl) - untar = call("tar pxvf vimdir.tar.bz2 && rm vimdir.tar.bz2", shell = True) + #untar = call("tar pxvf vimdir.tar.bz2 && rm vimdir.tar.bz2", shell = True) + tar = tarfile.open("vimdir.tar.bz2") + tar.extractall() + tar.close() if os.path.isfile(conkydir) == True: print ".conkyrc already exists, skipping download!"