const=True,
                        help='Debug mode')

    args = parser.parse_args()

    if not os.path.isfile(args.config):
        print("Unable to find config file %s" % (args.config))

    c = config.Config(args.config)
    token = c.config["gitlab"]["access"]["token"]
    gitlab_url = c.config["gitlab"]["access"]["gitlab_url"]

    # Init gitlab api object
    if args.debug:
        print("%s, token" % (gitlab_url))
    gitlab = gitlab.Api(gitlab_url, token)

    # import project
    if args.project_path and args.filepath and os.path.isfile(args.filepath):
        if args.debug:
            print("Exporting %s" % (args.project_path))
        status = gitlab.project_import(args.project_path, args.filepath)

        # Import successful
        if status:
            print("Import success for %s" % (args.project_path))
            sys.exit(0)
        else:
            print("Import was not successful")
            sys.exit(1)
                        help='Debug mode')

    args = parser.parse_args()

    if not os.path.isfile(args.config):
        print("Unable to find config file %s" % (args.config))

    c = config.Config(args.config)
    token = c.config["gitlab"]["access"]["token"]
    gitlab_url = c.config["gitlab"]["access"]["gitlab_url"]
    ssl_verify = c.config["gitlab"]["access"]["ssl_verify"]

    # Init gitlab api object
    if args.debug:
        print("%s, token" % (gitlab_url))
    gitlab = gitlab.Api(gitlab_url, token, ssl_verify)

    # import project
    if args.project_path and args.filepath and os.path.isfile(args.filepath):
        if args.debug:
            print("Exporting %s" % (args.project_path))
        status = gitlab.project_import(args.project_path, args.filepath)

        # Import successful
        if status:
            print("Import success for %s" % (args.project_path))
            sys.exit(0)
        else:
            print("Import was not successful")
            sys.exit(1)