Skip to content
Browse files

Merge pull request #9 from Leonidas-from-XIV/fix-resource-path

Changed from sys.argv to __file__
  • Loading branch information...
2 parents 89eb05e + fc8ab5b commit b15018177a41ddcf4decdbe67faba82d3a8659f2 @FooSoft committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 mangle/util.py
View
3 mangle/util.py
@@ -14,10 +14,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import sys
import os.path
def buildResPath(relative):
- directory = os.path.split(sys.argv[0])[0]
+ directory = os.path.dirname(__file__)
return os.path.join(directory, relative)

0 comments on commit b150181

Please sign in to comment.
Something went wrong with that request. Please try again.