forked from NITDgpOS/UIP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs for setup.py and nested uiplib modules Fixes NITDgpOS#35
- Loading branch information
1 parent
a00bea9
commit 3286dad
Showing
12 changed files
with
109 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,4 @@ from uiplib.UIP import main | |
|
||
|
||
if __name__ == "__main__": | ||
sys.exit(main()) | ||
|
||
sys.exit(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
"""Module to fetch wallpapers.""" | ||
|
||
from uiplib.scrape.scrape import get_images | ||
from threading import Thread | ||
|
||
# Class to create threads for get_images | ||
|
||
|
||
class onlineFetch(Thread): | ||
"""Generic thread module to download images.""" | ||
|
||
def __init__(self, url, directory, count): | ||
"""Initialize the fetch thread.""" | ||
Thread.__init__(self) | ||
self.url = url | ||
self.directory = directory | ||
self.count = count | ||
|
||
def run(self): | ||
"""Begin the download. Automatically called when a thread starts.""" | ||
get_images(self.url, self.directory, self.count) |
Oops, something went wrong.