diff options
author | Jeromy Reimer | 2016-01-03 18:04:14 -0600 |
---|---|---|
committer | Jeromy Reimer | 2016-01-03 18:04:14 -0600 |
commit | 6063f8bdb48f761ae4a7c9a62a80c68b77db1590 (patch) | |
tree | abb146f347d954712bff0aaf9c69c5d81c251b3c /filters-in-home.patch | |
parent | c71bb9edab3bd9121e6cc8d76505e8280f6fa138 (diff) | |
download | aur-6063f8bdb48f761ae4a7c9a62a80c68b77db1590.tar.gz |
updated to 1.5.0.0
Diffstat (limited to 'filters-in-home.patch')
-rw-r--r-- | filters-in-home.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/filters-in-home.patch b/filters-in-home.patch deleted file mode 100644 index 565358090283..000000000000 --- a/filters-in-home.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- editortools/filter.py.orig 2013-08-30 11:27:03.192204427 +0200 -+++ editortools/filter.py 2013-08-30 11:29:30.482476023 +0200 -@@ -365,7 +365,10 @@ - - def reloadFilters(self): - filterDir = mcplatform.filtersDir -+ userFilterDir = mcplatform.userFiltersDir - filterFiles = os.listdir(filterDir) -+ if os.path.exists(userFilterDir): -+ filterFiles += os.listdir(userFilterDir) - filterPyfiles = filter(lambda x: x.endswith(".py"), filterFiles) - - def tryImport(name): ---- mcplatform.py.orig 2013-04-26 01:02:44.000000000 +0200 -+++ mcplatform.py 2013-08-30 11:26:34.187710099 +0200 -@@ -419,12 +427,14 @@ - portable = False - - filtersDir = os.path.join(directories.dataDir, "filters") --if filtersDir not in [s.decode(sys.getfilesystemencoding()) -+userFiltersDir = os.path.expanduser("~/.mcedit/filters") -+for d in [ userFiltersDir, filtersDir ] : -+ if d not in [s.decode(sys.getfilesystemencoding()) - if isinstance(s, str) - else s - for s in sys.path]: - -- sys.path.append(filtersDir.encode(sys.getfilesystemencoding())) -+ sys.path.append(d.encode(sys.getfilesystemencoding())) - - if portable: - serverJarStorageDir = (os.path.join(parentDir, "ServerJarStorage")) |