def get_full_dir_name(path):
 if (sys.platform == 'win32'):
  return path
 import System
 if is_netstandard:
  import clr
  clr.AddReference('System.IO.FileSystem')
 return System.IO.DirectoryInfo(path).FullName

def get_full_dir_name ( path ) : if ( sys . platform == 'win32' ) : return path import System if is_netstandard : import clr clr . AddReference ( 'System.IO.FileSystem' ) return System . IO . DirectoryInfo ( path ) . FullName
removes ~# from short file names .