Closed modernmanyxl closed 4 years ago
@modernmanxxx I am not sure but I think this should work for you, from os import path
.
I've tried using "from OS import path" and "from pathlib import path" and it doesn't work properly pathlib.Path():AttributeError 'WindowsPath' object has no attribute 'listdir'
os.path: TypeError 'module' object is not callable
try exactly from os import path
Its os
not OS
And path is not callable, means its a module, you can't call it like a function. run
dir(path)
to see what are the properties and functions available in the path module.
I'm not going to dwell on this anymore. Thank you for your help.
hello,where can I get the module which name is "path"(in chapter13→Multiprocessing→Queues→searching_with_queues.py). Neither the windows platform nor the Linux platform I can't install "path" from pip. But I really want to run the code to understand how it works