Weird bug
This commit is contained in:
parent
fbec245501
commit
de805696e2
5 changed files with 15 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,5 +1,6 @@
|
|||
*.iso
|
||||
*.ird
|
||||
*.gz
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
|
||||
try:
|
||||
from libray import iso
|
||||
|
|
|
|||
|
|
@ -110,13 +110,13 @@ class IRD:
|
|||
with open(filename, 'rb') as input_ird:
|
||||
if input_ird.read(4) != self.MAGIC_STRING:
|
||||
uncompress = True
|
||||
|
||||
|
||||
if uncompress:
|
||||
with gzip.open(filename, 'rb') as gzfile:
|
||||
with open(self.TEMP_FILE, 'wb') as tmpfile:
|
||||
tmpfile.write(gzfile.read())
|
||||
else:
|
||||
shutil.copyfile(filename, self.TEMP_FILE)
|
||||
|
||||
shutil.copyfile(filename, self.TEMP_FILE)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
pycrypto==2.6.1
|
||||
pycrypto==2.6.1
|
||||
requests==2.19.1
|
||||
beautifulsoup4==4.6.0
|
||||
6
setup.py
6
setup.py
|
|
@ -12,5 +12,9 @@ setup(
|
|||
url="https://notabug.org/necklace/libray",
|
||||
packages=['libray'],
|
||||
scripts=['libray/libray'],
|
||||
install_requires=['pycrypto==2.6.1'],
|
||||
install_requires=[
|
||||
'pycrypto==2.6.1',
|
||||
'requests==2.19.1',
|
||||
'beautifulsoup4==4.6.0'
|
||||
],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue