-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
…rting file (Not tested on Windows/OSX)
I haven't tested this on Windows yet, but I can already see a change from reading it. You can completely remove I'm wondering why the space is added at the beginning of the path and is immediately removed. Is this an after effect of |
Ah, thanks. Does os.path.dirname give the entire path? And yes, the space is to combat the forward slash at the beginning being removed, and rendering the path invalid. On windows, it should just put in and remove a space. |
Very sorry for the late reply, Tribex. Entire path meaning everything but the file name? Yes, it should. You can see a bit on how it works in my tutorial on it. I'm not sure if |
Sorry, I can't access your website. (I live in China) Anyhow, I'll do as you suggested, thanks for the tips! |
Aw, well, here is the Gist I have in it as an example. https://gist.github.com/le717/6021206 You're always welcome. Don't ever be afraid to ask. :) |
Yes sir! That looks simple enough, simpler than I thought. <offtopic> Does anyone else think that limiting the length of the lines so much actually hinders readability? Oh, and Happy New Year! |
Patch confirmed to work on Windows, and it looks like it should work on Mac OS X too. If you can not (because of other work) fix it to use @MinnieTheMoocher Does this all look right to you? |
I'm a bit too busy to work on it for a few days, but I do want to use the proper way. |
That's alright Tribex. I'll work on it. 😉 Patch merged! |
Better part path lookup, per report from @MinnieTheMoocher
@tribex This should still work on Linux, see http://labs.codecademy.com/BqV7/1#:workspace
Thanks, sorry I didn't do it myself. I'm not really free these days until after dinner, when I'm too tired to write any good code. |
@le717 You have removed the global file_directory variable. That is important!!! file_directory stores the directory of the ldr file you are importing. By changing it to file_name, the current directory becomes the directory of EVERY subsequent part that is attempted to import. Which may cause major problems. |
d3c4685 That better? 😃 |
Getting there 😉 |
There we go! 2d588b7 should be correct now. |
Looks like it :D |
Includes everything mentioned in #40 (comment) , and uses (a slightly modified version) of the code from #40 (comment)
NEEDS TO BE TESTED ON WINDOWS AND OSX.
It should work perfectly fine on OSX, not so sure about windows.
Also, construction of the paths array should be moved, but it doesn't slow down performance much ATM.