mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-15 09:14:11 +02:00
22 lines
641 B
C#
22 lines
641 B
C#
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
using System.IO;
|
|
|
|
namespace Focalboard {
|
|
static class Utils {
|
|
public static string GetAppFolder() {
|
|
string appFolder;
|
|
|
|
try {
|
|
appFolder = Windows.ApplicationModel.Package.Current.InstalledLocation.Path;
|
|
} catch {
|
|
// Not a UWP app
|
|
string appPath = System.Reflection.Assembly.GetExecutingAssembly().Location;
|
|
appFolder = Path.GetDirectoryName(appPath);
|
|
}
|
|
|
|
return appFolder;
|
|
}
|
|
}
|
|
}
|