1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

refactoring

This commit is contained in:
Shlomi Fish 2021-08-30 09:48:55 +03:00
parent a86bb4f222
commit 6dfbdb1e61

View file

@ -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, )