replacing bash tar call with a tarfiles call
This commit is contained in:
parent
6291c80311
commit
09e4015b02
|
@ -7,6 +7,7 @@ import os
|
||||||
from subprocess import call
|
from subprocess import call
|
||||||
import platform
|
import platform
|
||||||
import urllib2
|
import urllib2
|
||||||
|
import tarfile
|
||||||
|
|
||||||
#global vars
|
#global vars
|
||||||
vimrcurl = "https://raw.github.com/staticsafe/dotfiles/master/.vimrc"
|
vimrcurl = "https://raw.github.com/staticsafe/dotfiles/master/.vimrc"
|
||||||
|
@ -79,7 +80,10 @@ def checksandactions():
|
||||||
print ".vim dir already exists, skipping download!"
|
print ".vim dir already exists, skipping download!"
|
||||||
else:
|
else:
|
||||||
urldownload(confurl = vimdirurl)
|
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:
|
if os.path.isfile(conkydir) == True:
|
||||||
print ".conkyrc already exists, skipping download!"
|
print ".conkyrc already exists, skipping download!"
|
||||||
|
|
Loading…
Reference in New Issue