@@ -19,7 +19,7 @@ def prefixify(value, prefix=None):
19
19
Converts to a version that uses prefixes, if prefix given. Examples:
20
20
21
21
>>> prefixify('one two three ', ' ')
22
- 'joinPath ("one", prefix, "two", prefix, "three", prefix)'
22
+ 'pathJoin ("one", prefix, "two", prefix, "three", prefix)'
23
23
>>> prefixify(' ', ' ')
24
24
'prefix'
25
25
>>> prefixify('this', ' ')
@@ -33,7 +33,7 @@ def prefixify(value, prefix=None):
33
33
vals = ['"{0}"' .format (v ) for v in value .split (prefix )]
34
34
vals = intersperse (vals , 'prefix' )
35
35
vals = [v for v in vals if v != '""' ]
36
- return 'joinPath ({0})' .format (', ' .join (vals ))
36
+ return 'pathJoin ({0})' .format (', ' .join (vals ))
37
37
38
38
def make_changes (orig , curr , prefix = None ):
39
39
'''
@@ -85,7 +85,7 @@ class LmodEnv(cli.Application):
85
85
'Save then load an environment, noting the changes.'
86
86
87
87
prefix = cli .SwitchAttr (['-p' , '--prefix' ], help = 'A common prefix to factor out' )
88
-
88
+
89
89
@cli .positional (cli .ExistingFile )
90
90
def main (self , filename = None ):
91
91
if self .nested_command is not None :
@@ -114,7 +114,7 @@ def main(self, filename):
114
114
class Load (cli .Application ):
115
115
116
116
prefix = cli .SwitchAttr (['-p' , '--prefix' ], help = 'A common prefix to factor out' )
117
-
117
+
118
118
@cli .positional (cli .ExistingFile )
119
119
def main (self , filename ):
120
120
with open (filename ) as f :
0 commit comments