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
|
*.iso
|
||||||
*.ird
|
*.ird
|
||||||
|
*.gz
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,9 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import requests
|
||||||
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from libray import iso
|
from libray import iso
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ class IRD:
|
||||||
with gzip.open(filename, 'rb') as gzfile:
|
with gzip.open(filename, 'rb') as gzfile:
|
||||||
with open(self.TEMP_FILE, 'wb') as tmpfile:
|
with open(self.TEMP_FILE, 'wb') as tmpfile:
|
||||||
tmpfile.write(gzfile.read())
|
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",
|
url="https://notabug.org/necklace/libray",
|
||||||
packages=['libray'],
|
packages=['libray'],
|
||||||
scripts=['libray/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