mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-01 00:45:52 +00:00
one more
This commit is contained in:
parent
db31d2bc1a
commit
82d24bfaf7
@ -101,7 +101,7 @@ def argv_to_abspath(s, **kwargs):
|
||||
Convenience function to decode an argv element to an absolute path, with ~ expanded.
|
||||
If this fails, raise a UsageError.
|
||||
"""
|
||||
decoded = unicode(s, "utf-8")
|
||||
decoded = argv_to_unicode(s)
|
||||
if decoded.startswith(u'-'):
|
||||
raise usage.UsageError("Path argument %s cannot start with '-'.\nUse %s if you intended to refer to a file."
|
||||
% (quote_output(s), quote_output(os.path.join('.', s))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user