Your Name %!s(int64=3) %!d(string=hai) anos
pai
achega
0f383fdcd9
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      hhh/browser_common.py

+ 9 - 1
hhh/browser_common.py

@@ -10,11 +10,19 @@ import os
 import time
 import re
 import json
+import configparser, os
+from os.path import expanduser
 
 class JBrowser:
+
     def __init__(self):
         os.chdir("C:\\Program Files\\Google\\Chrome\\Application\\")
-
+        home = expanduser("~")
+        print(home)
+#        config = configparser.ConfigParser()
+#        config.read_file(open('defaults.cfg'))
+#        config.read(['site.cfg', os.path.expanduser('~/.myapp.cfg')],
+#                    encoding='cp1250')
 
     def set_profile_path(self,profilepath):
         self.profilepath=profilepath