Created
November 1, 2015 04:55
-
-
Save goyusia/bbaae02f4303deff03d3 to your computer and use it in GitHub Desktop.
buggy os.path.join
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| a = '/home/haruna/devel/libsora.so/content' | |
| b = '../static/sample' | |
| c = 'sidetail-sora.gif' | |
| print(os.path.join(a, b, c)) | |
| #/home/haruna/devel/libsora.so/content/../static/sample/sidetail-sora.gif | |
| a = '/home/sora/devel/libsora.so/content' | |
| b = '/static/sample' | |
| c = 'sidetail-sora.gif' | |
| print(os.path.join(a, b, c)) | |
| # /static/sample/sidetail-sora.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment