Commits

anatoly techtonik committed 95b6a56

attempt to create environment (fails, because even internal Trac components are
also loaded by setuptools)

Comments (0)

Files changed (1)

 print("... imported Genshi %s" % genshi.__version__)
 
 if not os.path.exists(ENVPATH):
-  print("03. Creating .trac/ environment")
+  print("03. Creating .trac/ environment in %s" % ENVPATH)
   import trac.admin.console
-  trac.admin.console.run(args=[])  
+  trac.admin.console.run(args=[ENVPATH, 'initenv',
+    'Default "Trac Environment" for Development',
+    'sqlite:db/trac.db'])
 else:
   print("03. .trac/ environment already exists - exiting")