PCAP Modules and Packages • Set 4
PCAP Modules and Packages Practice Test 4 — 15 questions with explanations. Free, no signup.
A Python application needs to load a configuration file that should be placed in the same directory as the main script. The developer uses the __file__ attribute to get the script's path. Which expression correctly obtains the directory containing the main script?