Ubuntu Pastebin

Paste from smoser at Thu, 10 Nov 2016 02:01:07 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/usd/clone.py b/usd/clone.py
index 1c51395..ceec03b 100644
--- a/usd/clone.py
+++ b/usd/clone.py
@@ -40,7 +40,7 @@ Example:
                             help='Local directory to clone to. If not '
                                  'specified, a directory with the same '
                                  'name as PACKAGE will be used',
-                            default=argparse.SUPPRESS,
+                            default=None,
                             nargs='?'
                            )
         known_protos = ['git', 'http', 'https']
@@ -157,11 +157,9 @@ Example:
             self.lp_user = self.LP_USER_NONE
         else:
             self.lp_user = args.launchpad_user
-        self.directory = (os.path.abspath(args.directory) or
-                          os.path.join(os.path.abspath(os.getwcd()),
-                                       self.package
-                                      )
-                         )
+        self.directory = (
+            os.path.abspath(args.directory) if args.directory else
+            os.path.join(os.path.abspath(os.getcwd()), self.package))
         if args.verbose:
             logging.basicConfig(level=logging.DEBUG,
                                 format='%(asctime)s - %(levelname)s:%(message)s',
Download as text