Timeline for Transition from MATLAB to Python [duplicate]
Current License: CC BY-SA 3.0
Post Revisions
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 22, 2018 at 5:14 | history | edited | Jay | CC BY-SA 3.0 |
added 199 characters in body
|
| Mar 22, 2018 at 1:27 | vote | accept | Jay | ||
| Oct 18, 2015 at 12:40 | history | closed |
Ander Biguri EdChum python Users with the python badge or a synonym can single-handedly close python questions as duplicates and reopen them as needed. |
Duplicate of Import folder of modules in Python | |
| Oct 17, 2015 at 23:19 | answer | added | saulspatz | timeline score: 0 | |
| Oct 17, 2015 at 22:34 | answer | added | Andras Deak -- Слава Україні | timeline score: 0 | |
| Oct 17, 2015 at 21:17 | comment | added | Jay | Ok, I can install individual .py files. But if I want to install all the files in a folder is what I am having a problem with. | |
| Oct 17, 2015 at 21:00 | comment | added | Jay | Neither of these works. No matter what I do it keeps telling me that the directory does not exist. | |
| Oct 17, 2015 at 18:50 | review | Close votes | |||
| Oct 18, 2015 at 12:40 | |||||
| Oct 17, 2015 at 18:41 | comment | added | Andras Deak -- Слава Україні |
You can also import sys; sys.path.append('dirname') to add dirname to your python path for importing.
|
|
| Oct 17, 2015 at 18:33 | comment | added | Ahasanul Haque |
yes, you are in right track. Every py file can be imported as a module. Just write from filename import functionName and you are done.
|
|
| Oct 17, 2015 at 18:30 | history | asked | Jay | CC BY-SA 3.0 |