Skip to content

Commit

Permalink
Update instaReposter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Takenobou authored Oct 24, 2019
1 parent 87791b2 commit 372c969
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions instaReposter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,18 @@ def ensure_dir():
print("Creating image folder")
os.makedirs(ImagePath)


def multiProcessor( processMode ):

if processMode == 1:
Process(target=InstaPoster).start()
elif processMode == 2:
Process(target=RedditImageGrab).start()


# Instagram poster script
def InstaPoster():
print("Posting Initiated")
autopost.main()


#Image grabber and file sorter
def RedditImageGrab():
#while True:
Expand All @@ -38,11 +35,8 @@ def RedditImageGrab():
#elapsed_time = time.time() - start_time
print("Image folder repopulated")
#print("The update took " + str(elapsed_time) + "s")




#multiprocessing the functions
if __name__ == '__main__':
ensure_dir()
multiProcessor(1)
multiProcessor(1)

0 comments on commit 372c969

Please sign in to comment.