path.py 405 B

1234567891011121314151617
  1. from pathlib import Path
  2. from os import getcwd
  3. class Path_Lib:
  4. def __init__(self,name='',path=''):
  5. self.name = name
  6. self.path = path
  7. pass
  8. # Low Level
  9. def get_cwd_path(self):
  10. return getcwd()
  11. # Mid Level
  12. def get_path_of_file_in_cwd(self, name=''):
  13. if name =='':
  14. name = self.name
  15. path= getcwd()+ '\\'+ name
  16. return path