Skip to content

Commit ac60170

Browse files
committed
Small update
1 parent 19ad357 commit ac60170

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pyneofile/pyfile.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,15 @@
3535
import inspect
3636
import tempfile
3737
import configparser
38+
__enable_pywwwget__ = True
3839
pywwwget = False
3940
try:
40-
from .pywwwget import upload_file_to_internet_file, download_file_from_internet_file
41-
pywwwget = True
41+
if(__enable_pywwwget__):
42+
from .pywwwget import upload_file_to_internet_file, download_file_from_internet_file
43+
pywwwget = True
44+
else:
45+
pywwwget = False
46+
pass
4247
except ImportError:
4348
pywwwget = False
4449
from io import open

0 commit comments

Comments
 (0)