mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-12 12:12:04 +08:00
MAINT: Consolidate coercion to sqlite conn/eng
This commit is contained in:
@@ -99,7 +99,7 @@ class TradingEnvironment(object):
|
||||
self.exchange_tz = exchange_tz
|
||||
|
||||
if isinstance(asset_db_path, string_types):
|
||||
asset_db_path = 'sqlite:///%s' % asset_db_path
|
||||
asset_db_path = 'sqlite:///' + asset_db_path
|
||||
self.engine = engine = create_engine(asset_db_path)
|
||||
else:
|
||||
self.engine = engine = asset_db_path
|
||||
|
||||
Reference in New Issue
Block a user