Skip to content

Commit b130089

Browse files
rachmadaniHaryonohardikvasa
authored andcommitted
fix: dev: ImportError on python2 (#42)
1 parent 4f56045 commit b130089

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

google_images_download/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
#!/usr/bin/env python
2+
from __future__ import absolute_import
3+
4+
15
def main():
26
import google_images_download.google_images_download
37

48
if __name__ == '__main__':
5-
main()
9+
main()

google_images_download/__main__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python
2+
from __future__ import absolute_import
3+
4+
from .__init__ import main
5+
6+
if __name__ == '__main__':
7+
main()

0 commit comments

Comments
 (0)