summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSérgio Almeida <mephx.x@gmail.com>2009-08-17 16:58:20 +0100
committerSérgio Almeida <mephx.x@gmail.com>2009-08-17 16:58:20 +0100
commita5e90b1541cad96d2379d00ada068b44bdd4110b (patch)
treeb91e71ac5d15b257f76e4afe8b43361a72d08b4d
parentFixed no folder profile bug (diff)
downloaduselect-uprofile.tar.gz
uselect-uprofile.tar.bz2
uselect-uprofile.zip
Fixed args bugHEADuprofilemaster
-rwxr-xr-xuprofile.py10
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: