Skip to content

Commit

Permalink
add quotes around setenv definitions in modulefiles & define authors …
Browse files Browse the repository at this point in the history
…as per issue easyblocks/easybuilders#99

Signed-off-by: Fotis Georgatos <fotis.georgatos@uni.lu>
  • Loading branch information
fgeorgatos committed Feb 6, 2013
1 parent ab48317 commit 1bfdf26
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions easybuild/tools/module_generator.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
##
# Copyright 2009-2012 Ghent University
# Copyright 2009-2012 Stijn De Weirdt
# Copyright 2010 Dries Verdegem
# Copyright 2010-2012 Kenneth Hoste
# Copyright 2011 Pieter De Baets
# Copyright 2011-2012 Jens Timmerman
# Copyright 2009-2013 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
Expand All @@ -29,6 +24,9 @@
##
"""
Generating module files.
@authors: Stijn De Weirdt (UGent), Dries Verdegem (UGent), Kenneth Hoste (UGent), Pieter De Baets (UGent),
Jens Timmerman (UGent)
"""
import os
import shutil
Expand Down Expand Up @@ -175,7 +173,8 @@ def set_environment(self, key, value):
"""
Generate setenv statement for the given key/value pair.
"""
return "setenv\t%s\t\t%s\n" % (key, value)
# Double quotes are needed, to ensure smooth working of EBDEVEL* modulefiles
return 'setenv\t%s\t\t"%s"\n' % (key, value)

def __del__(self):
"""
Expand Down

0 comments on commit 1bfdf26

Please sign in to comment.