File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ function getClassConfig(className, doLog) {
94
94
95
95
function relativePathToPythonImportPath ( relativePath ) {
96
96
97
- var tokens = relativePath . split ( path . sep ) ;
97
+ var tokens = relativePath . split ( / \\ | \/ / ) ;
98
98
var firstToken = tokens [ 0 ] ;
99
99
var sawFolderToken = false ;
100
100
@@ -709,8 +709,8 @@ _.extend(PythonWrapper.prototype, {
709
709
} ,
710
710
711
711
processDocsUrl : function ( ) {
712
-
713
- var refTokens = this . modulePath . split ( path . sep ) ;
712
+
713
+ var refTokens = this . modulePath . split ( / \\ | \/ / ) ;
714
714
715
715
// capitalize elements in url
716
716
refTokens = refTokens . map ( function ( token ) {
@@ -792,7 +792,7 @@ function createTopLevelPythonModuleFile() {
792
792
793
793
// convert relative path to python-style import path
794
794
if ( modulePath !== '.' ) {
795
- var importPath = '.' + modulePath . split ( path . sep ) . join ( '.' ) + '.' + moduleName ;
795
+ var importPath = '.' + modulePath . split ( / \\ | \/ / ) . join ( '.' ) + '.' + moduleName ;
796
796
} else {
797
797
var importPath = '.' + moduleName ;
798
798
}
You can’t perform that action at this time.
0 commit comments