Skip to content

Commit

Permalink
Merge pull request Ericsson#693 from bruntib/fix_abspath
Browse files Browse the repository at this point in the history
Parse command needs absolute paths as input
  • Loading branch information
dkrupp authored Jun 29, 2017
2 parents 3e5bfd0 + 51febb6 commit acdf11d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libcodechecker/database_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def from_cmdline_args(args, migration_root, env=None):
data_file = os.path.join(args.workspace, 'codechecker.sqlite')
else:
data_file = args.sqlite
data_file = os.path.abspath(data_file)
return SQLiteDatabase(data_file, migration_root, run_env=env)

def check_db_version(self, db_version_info, session=None):
Expand Down
1 change: 1 addition & 0 deletions libcodechecker/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def main(args):
sys.exit(2)

for input_path in args.input:
input_path = os.path.abspath(input_path)
os.chdir(original_cwd)
LOG.debug("Parsing input argument: '" + input_path + "'")

Expand Down
1 change: 1 addition & 0 deletions libcodechecker/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ def main(args):
skip_handlers = []
items = []
for input_path in args.input:
input_path = os.path.abspath(input_path)
LOG.debug("Parsing input argument: '" + input_path + "'")

if os.path.isfile(input_path):
Expand Down

0 comments on commit acdf11d

Please sign in to comment.