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