mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
refactoring
This commit is contained in:
parent
a86bb4f222
commit
6dfbdb1e61
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,6 @@
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
import subprocess
|
import subprocess
|
||||||
from subprocess import check_call
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -36,10 +35,11 @@ def main():
|
||||||
if not os.path.exists(cardsets_dir):
|
if not os.path.exists(cardsets_dir):
|
||||||
arc = cardsets_dir + ".tar.gz"
|
arc = cardsets_dir + ".tar.gz"
|
||||||
if not os.path.exists(arc):
|
if not os.path.exists(arc):
|
||||||
check_call([
|
subprocess.check_call([
|
||||||
"wget",
|
"wget",
|
||||||
"https://github.com/shlomif/" +
|
"https://github.com/shlomif/" +
|
||||||
"PySolFC-Cardsets/archive/2.0/" + arc])
|
"PySolFC-Cardsets/archive/2.0/" + arc
|
||||||
|
])
|
||||||
subprocess.check_call(["tar", "-xvf", arc])
|
subprocess.check_call(["tar", "-xvf", arc])
|
||||||
os.symlink(os.getcwd() + "/" + cardsets_dir, dot_pysol_cardsets, )
|
os.symlink(os.getcwd() + "/" + cardsets_dir, dot_pysol_cardsets, )
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue