Timeline for answer to How to access file in parent directory using python? by mikuszefski
Current License: CC BY-SA 3.0
Post Revisions
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 15, 2017 at 10:23 | comment | added | mikuszefski |
@EdmundCarvalho No, the contrary; that's exactly why you'd use os. This code runs just as fine in Linux, no changes required.
|
|
| Nov 15, 2017 at 10:05 | comment | added | Edmund Carvalho | Good guess :) , If I choose to port to a linux environment in the future do you see any drawbacks for the os.path.join method. | |
| Nov 15, 2017 at 10:02 | comment | added | mikuszefski |
While I am working on Linux I tested this on Win7 as your use of G:\ suggested.
|
|
| Nov 15, 2017 at 10:00 | comment | added | Edmund Carvalho | I think i will go with the os.path.join method , as environ is not part of the python 2.7.13 package. . Have you tested the os.path.join method in a linux environment ? | |
| Nov 15, 2017 at 9:53 | vote | accept | Edmund Carvalho | ||
| Nov 15, 2017 at 9:06 | vote | accept | Edmund Carvalho | ||
| Nov 15, 2017 at 9:06 | |||||
| Nov 15, 2017 at 8:54 | history | edited | mikuszefski | CC BY-SA 3.0 |
added 42 characters in body
|
| Nov 15, 2017 at 8:40 | history | answered | mikuszefski | CC BY-SA 3.0 |