fork download
  1. import os
  2. import glob
  3.  
  4.  
  5.  
  6.  
  7.  
  8. path = os.path.abspath(__file__)
  9. dir_path = os.path.dirname(path)
  10. print (dir_path)#prints the current directory page
  11. #files=glob.glob(dir_path+"/*.jpg")#find the files that are .jpg
  12. #for file in files:
  13. # print(file)#print to screen to make sure it found them all
Success #stdin #stdout 0.03s 10336KB
stdin
Standard input is empty
stdout
/home/kThw9O