Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9 from Leonidas-from-XIV/fix-resource-path
Browse files Browse the repository at this point in the history
Changed from sys.argv to __file__
  • Loading branch information
FooSoft committed Nov 15, 2011
2 parents 89eb05e + fc8ab5b commit b150181
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mangle/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.