1234567891011121314151617 |
- from pathlib import Path
- from os import getcwd
- class Path_Lib:
- def __init__(self,name='',path=''):
- self.name = name
- self.path = path
- pass
- # Low Level
- def get_cwd_path(self):
- return getcwd()
- # Mid Level
- def get_path_of_file_in_cwd(self, name=''):
- if name =='':
- name = self.name
- path= getcwd()+ '\\'+ name
- return path
|