-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os.path.commonpath or os.path.commonprefix ?? #1
Comments
Works like a charm here. Aren't you using Python 2 by any chance? This script assumes Python 3. What does
|
@czka What about changing the shebang to And also changing the |
I thought about it, but I'm not 100% sure each and every GNU/Linux distro installation out there will have that As for |
Recently in README.md I have documented the usage as I mean it in a more explicit way, hinted about Python 3 requirement and added the |
As to my #1 (comment), I did my homework and it shows that https://www.python.org/dev/peps/pep-0394 recommends |
➜ python tar_fix.py --input archlinux-bootstrap-2016.12.01-x86_64.tar.gz --output bootstrap.tar.gz
Traceback (most recent call last):
File "tar_fix.py", line 67, in
tarball.drop_lead_comp()
File "tar_fix.py", line 22, in drop_lead_comp
lead_comp_name = os.path.commonpath(tarin.getnames())
AttributeError: 'module' object has no attribute 'commonpath'
The text was updated successfully, but these errors were encountered: