Skip to content

Commit 9aa1e32

Browse files
committed
Merge pull request tualatrix#22 from ningfei/master
Update scripts.py to support Ubuntu 13.04 and later.
2 parents 8a9119f + a37f18f commit 9aa1e32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ubuntutweak/admins/scripts.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import stat
2121
import shutil
2222
import logging
23+
import platform
2324

2425
from gi.repository import Gtk, GObject
2526

@@ -36,7 +37,7 @@
3637
class AbstractScripts(object):
3738
system_dir = os.path.join(CONFIG_ROOT, 'scripts')
3839

39-
if system.CODENAME == 'raring':
40+
if int(platform.dist()[1][0:2]) >= 13:
4041
user_dir = os.path.expanduser('~/.local/share/nautilus/scripts')
4142
else:
4243
user_dir = os.path.join(os.getenv('HOME'), '.gnome2', 'nautilus-scripts')

0 commit comments

Comments
 (0)