Explorar o código

Merge branch 'master' of https://github.com/pwman3/pwman3

oz123 %!s(int64=11) %!d(string=hai) anos
pai
achega
c6c73673c3
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      scripts/pwman3

+ 5 - 3
scripts/pwman3

@@ -58,7 +58,8 @@ if 'darwin' in sys.platform:
     from pwman.ui.mac import PwmanCliMacNew as PwmanCliNew
     OSX = True
 elif 'win' in sys.platform:
-    from pwman.ui.win import PwmanCliWinNew as PwmanCli
+    from pwman.ui.cli import PwmanCli 
+    from pwman.ui.win import PwmanCliWinNew as PwmanCliNew
     OSX = False
 else:
     from pwman.ui.cli import PwmanCli
@@ -102,7 +103,8 @@ try:
                       }
 
     config.set_defaults(default_config)
-
+    if 'win' in sys.platform:
+		config.set_value("Global", "colors", 'no')
     if os.path.exists(config_file):
         config.load(config_file)
         xselpath = config.get_value("Global", "xselpath")
@@ -167,7 +169,7 @@ try:
 finally:
     try:
         if _saveconfig:
-            config.save(config_file)
+            config.save(config_file) 
     except Exception, e:
         print "Error: %s" % (e)
         sys.exit(-1)