PyInstaller - How do you handle environmental variables?
PyInstaller - How do you handle environmental variables? Background: I am trying to convert a python script to an executable file that can be used on other computers. I decided to use PyInstaller. I am using Python 2.7.13 / Anaconda 2.2.0 (64-bit) . I have of course seen many examples and I can achieve this for basic examples. However, the script I am now working on uses environmental variables. The following block of code appears at the start of my python script: import os # force qt4 os.environ['ETS_TOOLKIT'] = 'qt4' os.environ['QT_API'] = 'pyqt' from traits.api import HasTraits, Range, Instance, Button, on_trait_change, Bool, Str, Enum, Float, Int from traitsui.api import View, Item, Group, HGroup, spring, Handler, Action, InstanceEditor, Menu, MenuBar, message, Tabbed from mayavi.core.ui.api import MayaviScene, SceneEditor, MlabSceneModel from pyface.api import FileDialog, OK import yaml from mayavi import mlab import numpy as np from collections...