diff options
author | Sérgio Almeida <mephx.x@gmail.com> | 2009-08-17 16:58:20 +0100 |
---|---|---|
committer | Sérgio Almeida <mephx.x@gmail.com> | 2009-08-17 16:58:20 +0100 |
commit | a5e90b1541cad96d2379d00ada068b44bdd4110b (patch) | |
tree | b91e71ac5d15b257f76e4afe8b43361a72d08b4d | |
parent | Fixed no folder profile bug (diff) | |
download | uselect-a5e90b1541cad96d2379d00ada068b44bdd4110b.tar.gz uselect-a5e90b1541cad96d2379d00ada068b44bdd4110b.tar.bz2 uselect-a5e90b1541cad96d2379d00ada068b44bdd4110b.zip |
-rwxr-xr-x | uprofile.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/uprofile.py b/uprofile.py index 3084e66..6a602ab 100755 --- a/uprofile.py +++ b/uprofile.py @@ -139,7 +139,10 @@ class UniversalProfileTool: printsystem.print_exception(Exception(\ 'No such option/profile "' + args[0] + \ '"\n "uprofile -help" for help')) - elif len(args) == 2: + self.get_profiles() + profiles = self.profiles + list = True + elif len(args) >= 2: try: profile = Profile(args[0]) profile.read_profile() @@ -150,7 +153,10 @@ class UniversalProfileTool: printsystem.print_exception(Exception(\ 'No such option/profile "' + args[0] + \ '"\n "uprofile -help" for help')) - + self.get_profiles() + profiles = self.profiles + list = True + if len(args) == 2: args = None else: |