Skip to content

Commit

Permalink
try to fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
LoRexxar committed Apr 16, 2019
1 parent ed953d3 commit 81414bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cobra/pretreatment.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def init_pre(self, target_directory, files):
self.file_list = files
self.target_directory = target_directory

self.target_directory = self.target_directory.replace('/', '\\')
self.target_directory = os.path.normpath(self.target_directory)

def pre_ast(self):

Expand All @@ -41,7 +41,7 @@ def pre_ast(self):
# 下面是对于php文件的处理逻辑
for filepath in fileext[1]['list']:

filepath = self.target_directory + filepath.replace('/', '\\')
filepath = os.path.normpath(self.target_directory + filepath)
self.pre_result[filepath] = {}
self.pre_result[filepath]['language'] = 'php'

Expand Down

0 comments on commit 81414bd

Please sign in to comment.