sys.platform is linux on python3 not linux2

This commit is contained in:
j 2014-10-31 18:14:59 +01:00
parent ee12580bcb
commit 42a06b1a86

View file

@ -164,7 +164,7 @@ if __name__ == '__main__':
if len(sys.argv) == 1:
if sys.platform == 'darwin':
target = os.path.expanduser('~/Library/Application Support/Open Media Libary')
elif sys.platform == 'linux2':
elif sys.platform.startswith('linux'):
target = os.path.expanduser('~/.local/share/openmedialibrary')
else:
target = os.path.join(os.curdir, 'openmedialibrary')