mirror of https://github.com/explosion/spaCy.git
Make sure sys.argv exists (#5943)
* Make sure sys.argv exists (resolves #5610) * Fix typo
This commit is contained in:
parent
071c09ff35
commit
99d2a25687
2
setup.py
2
setup.py
|
@ -193,7 +193,7 @@ def setup_package():
|
||||||
|
|
||||||
root = os.path.abspath(os.path.dirname(__file__))
|
root = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == "clean":
|
if hasattr(sys, "argv") and len(sys.argv) > 1 and sys.argv[1] == "clean":
|
||||||
return clean(root)
|
return clean(root)
|
||||||
|
|
||||||
with chdir(root):
|
with chdir(root):
|
||||||
|
|
Loading…
Reference in New Issue