python get dir of script code example
Example 1: python how to get script directory
import os
print(os.path.abspath(''))
Example 2: python how to get directory of script
import os
print(os.path.abspath(''))
import os
print(os.path.abspath(''))
import os
print(os.path.abspath(''))