You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
578 B
Plaintext

12 years ago
#!/usr/bin/python
import sane, os
import scantools
scantools.init()
project_name = raw_input("[?] Project name? ")
if project_name == "":
print "No valid project name given!"
exit(1)
try:
os.makedirs(project_name)
except OSError, e:
print "WARNING: Project exists!"
num = int(raw_input("[?] What is the number of the first scan? "))
raw_input("Press enter to start scanning...")
while True:
scantools.scan(project_name, num)
num = int(raw_input("[+] Page %d finished. What is the number of the next scan? " % num))
raw_input("Press enter to start scanning...")