Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
Add dependency for pathlib
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Rowe <simon.rowe@eu.citrix.com>
  • Loading branch information
Simon Rowe committed Oct 30, 2018
1 parent 6edc761 commit c0f6156
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions planex.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Requires: make
Requires: mock
Requires: python-argcomplete
Requires: python-argparse
Requires: python-pathlib
Requires: python-requests
Requires: python-setuptools
Requires: rpm-build
Expand Down
5 changes: 4 additions & 1 deletion planex/cmd/clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
# pylint: disable=relative-import
from six.moves.urllib.parse import urlparse, urlunparse, parse_qs, urlencode

from pathlib2 import Path
try:
from pathlib2 import Path
except ImportError:
from pathlib import Path

from planex.cmd.args import common_base_parser
from planex.cmd.fetch import fetch_url
Expand Down

0 comments on commit c0f6156

Please sign in to comment.