replacing bash tar call with a tarfiles call

This commit is contained in:
staticsafe 2012-02-13 13:31:44 -05:00
parent 6291c80311
commit 09e4015b02
1 changed files with 5 additions and 1 deletions

View File

@ -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!"