File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ def list_remotes(self):
139
139
140
140
def add_submodule (self , path ):
141
141
url = self ._cli_conf .get (CTFCliConfig .GLOBAL_SECTION_NAME , CTFCliConfig .CONFIG_REMOTE_URL )
142
- dirname = os .path .splitext (os .path .basename (url ))[0 ]
142
+ dirname = os .path .splitext (os .path .basename (url ))[0 ]. replace ( '-' , '_' )
143
143
check_call ('git submodule add %s %s' % (url , path + "/" + dirname ), shell = True )
144
144
145
145
def remove_remote (self ):
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ def _write_environment_py(self):
272
272
"""
273
273
project_env_py = glob .glob (os .path .join (self ._working_dir , '*environment.py' ))
274
274
if project_env_py :
275
- module_name = os .path .basename (project_env_py [0 ]).replace ('.py' , '' )
275
+ module_name = os .path .basename (project_env_py [0 ]).replace ('.py' , '' ). replace ( '-' , '_' )
276
276
import_statement = 'from {0} import *\n ' .format (module_name )
277
277
import_statement += 'import {0}' .format (module_name )
278
278
else :
You can’t perform that action at this time.
0 commit comments