Created .gitignore; Added basic checks for data input in main.py.
This commit is contained in:
parent
9026a2039b
commit
f3835dbb63
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
file.jpg
|
25
main.py
25
main.py
@ -0,0 +1,25 @@
|
||||
import subprocess
|
||||
|
||||
import os
|
||||
|
||||
from os.path import expanduser
|
||||
home = expanduser("~")
|
||||
|
||||
mainCategory = ""
|
||||
|
||||
subCategory = ""
|
||||
|
||||
pageNumber = -1
|
||||
|
||||
|
||||
while mainCategory == "":
|
||||
try:
|
||||
mainCategory = str(input("Main Category Of Document: "))
|
||||
|
||||
except:
|
||||
|
||||
mainCategory = ""
|
||||
|
||||
if mainCategory == "":
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user