Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
add env. variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Manthan Sharma committed Jan 23, 2017
1 parent d43d043 commit 4eb7b98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions designer/__main__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import os.path
from os import path, environ

from designer.app import DesignerApp
from designer.utils.utils import get_fs_encoding
from kivy.resources import resource_add_path


def main():
data = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')
data = path.join(path.dirname(path.abspath(__file__)), 'data')
environ['designer_source_dir'] = path.dirname(path.abspath(__file__))
if isinstance(data, bytes):
data = data.decode(get_fs_encoding())
resource_add_path(data)
Expand Down
6 changes: 2 additions & 4 deletions designer/tools/bug_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,8 @@ def build(self):
import platform

requirements = parse_requirements(os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'..',
'..',
'requirements.txt'),
os.environ['designer_source_dir'],
'..', 'requirements.txt'),
session=PipSession()
)
env_info = ''
Expand Down

0 comments on commit 4eb7b98

Please sign in to comment.