From 3520c396ee221c3865ca446d135b4472439bda7f Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Jun 13 2016 03:59:00 +0000 Subject: fix broken when non-ASCII in path Resolves: 1286374 Signed-off-by: Chenxiong Qi --- diff --git a/src/fedpkg/__main__.py b/src/fedpkg/__main__.py index 8a1e46f..4cb5526 100644 --- a/src/fedpkg/__main__.py +++ b/src/fedpkg/__main__.py @@ -17,6 +17,7 @@ import ConfigParser import argparse import pyrpkg +import pyrpkg.utils import fedpkg @@ -44,7 +45,7 @@ def main(): if not client.args.path: try: - client.args.path = os.getcwd() + client.args.path = pyrpkg.utils.getcwd() except: print('Could not get current path, have you deleted it?') sys.exit(1)