keep /
This commit is contained in:
@@ -36,11 +36,18 @@ def setup_options():
|
||||
if options.clearAll:
|
||||
options.clear=True
|
||||
if options.SRC!='':
|
||||
options.SRC=os.path.abspath(options.SRC)
|
||||
options.SRC=path_to_abs(options.SRC)
|
||||
if options.TGT!='':
|
||||
options.TGT=os.path.abspath(options.TGT)
|
||||
options.TGT=path_to_abs(options.TGT)
|
||||
return options
|
||||
|
||||
def path_to_abs(path):
|
||||
append=""
|
||||
if path.endswith("/"):
|
||||
append="/"
|
||||
return os.path.abspath(path)+append
|
||||
|
||||
|
||||
def createdb(fname):
|
||||
conn=sqlite3.connect(fname)
|
||||
db=conn.cursor()
|
||||
|
||||
Reference in New Issue
Block a user