While using cd, ls or other file handling commands, the relative paths do not work well. The parse_drive_paths function in drive_util works well, problem is with the commented snippets in gd.py.
#---------------DEBUGGING REQ---------------------
if drive_path.startswith('/'):
drive_path = '~/' + drive_path[1:]
if CURR_HOME_DIR in drive_path:
drive_path = drive_path.split(CURR_HOME_DIR)[-1]
if drive_path=='/':
drive_path = '~'
#----------------------------------------------------
While using cd, ls or other file handling commands, the relative paths do not work well. The parse_drive_paths function in drive_util works well, problem is with the commented snippets in gd.py.
#---------------DEBUGGING REQ--------------------- if drive_path.startswith('/'): drive_path = '~/' + drive_path[1:] if CURR_HOME_DIR in drive_path: drive_path = drive_path.split(CURR_HOME_DIR)[-1] if drive_path=='/': drive_path = '~' #----------------------------------------------------