Can I use functions while defining paths?

Andrej Viktorovich viktorovichandrej at gmail.com
Mon Sep 4 04:08:19 EDT 2017


Hello,

Trying to import my made module to python with helper function:

import os.path.join ("D","pyth_nonsens","workspace_python","PyhonTutorial","reader")



>>> import os.path.join ("D","pyth_nonsens","workspace_python","PyhonTutorial","reader")
  File "<stdin>", line 1
    import os.path.join ("D","pyth_nonsens","workspace_python","PyhonTutorial","reader")
                        ^


Can I use functions while defining paths?



More information about the Python-list mailing list