To get only the folder part of the path, use static method GetDirectoryName of Path class.
string appPath = Path.GetDirectoryName(Application.ExecutablePath);
To get assembly in which the specified class is defined use method Assembly.GetAssembly (with the specified class type as a paramater). The assembly must be loaded. Next get assembly file path using Assembly.CodeBase property.
string path = Path.GetDirectoryName(