mirror of
https://github.com/unmojang/meta.git
synced 2025-09-24 03:31:03 -04:00
Allow running from anywhere
This commit is contained in:
parent
34241bfb39
commit
b4a16e09f1
4
grab.py
4
grab.py
@ -11,6 +11,10 @@ from subprocess import Popen, PIPE
|
||||
|
||||
from cachecontrol.caches import FileCache
|
||||
|
||||
abspath = os.path.abspath(__file__)
|
||||
dname = os.path.dirname(abspath)
|
||||
os.chdir(dname)
|
||||
|
||||
forever_cache = FileCache('http_cache', forever=True)
|
||||
sess = CacheControl(requests.Session(), forever_cache)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user