~matsubara/enso/ppa-community-enso

« back to all changes in this revision

Viewing changes to enso/platform/win32/__init__.py

  • Committer: U-ANUBIS\pavel
  • Date: 2009-02-24 13:02:00 UTC
  • mfrom: (138.2.2 community-enso)
  • Revision ID: pavel@anubis-20090224130200-hbl3kbdc40xjddqn
MergeĀ fromĀ ~blackdaemon/enso/win32build

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    raise enso.platform.PlatformUnsupportedError()
38
38
 
39
39
# Hack the PATH so we can load dlls from the enso.platform.win32 directory
40
 
oldPath = os.environ["PATH"]
41
 
path = oldPath + ";" +  os.path.abspath( __path__[0] )
42
 
os.environ["PATH"] = path
 
40
# Our path must be at the beginning, otherwise libcairo-2.dll from other
 
41
# applications can get in the way
 
42
os.environ["PATH"] = "%s;%s" % (os.path.abspath( __path__[0] ), os.environ["PATH"])
43
43
 
44
44
def get_script_folder_name():
45
45
  """Returns the folder where Enso commands are found. This function