Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pygwinc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gwinc
pygwinc
Commits
ccd92ee6
Commit
ccd92ee6
authored
4 years ago
by
Jameson Rollins
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'master'
fix relative imports See merge request
!89
parents
1352253c
82e398a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!89
fix relative imports
Pipeline
#127751
passed
4 years ago
Stage: dist
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gwinc/__init__.py
+2
-0
2 additions, 0 deletions
gwinc/__init__.py
with
2 additions
and
0 deletions
gwinc/__init__.py
+
2
−
0
View file @
ccd92ee6
from
__future__
import
division
from
__future__
import
division
import
os
import
os
import
sys
import
logging
import
logging
import
importlib
import
importlib
import
numpy
as
np
import
numpy
as
np
...
@@ -22,6 +23,7 @@ def _load_module(name_or_path):
...
@@ -22,6 +23,7 @@ def _load_module(name_or_path):
path
=
os
.
path
.
join
(
path
,
'
__init__.py
'
)
path
=
os
.
path
.
join
(
path
,
'
__init__.py
'
)
spec
=
importlib
.
util
.
spec_from_file_location
(
modname
,
path
)
spec
=
importlib
.
util
.
spec_from_file_location
(
modname
,
path
)
mod
=
importlib
.
util
.
module_from_spec
(
spec
)
mod
=
importlib
.
util
.
module_from_spec
(
spec
)
sys
.
modules
[
mod
.
__name__
]
=
mod
spec
.
loader
.
exec_module
(
mod
)
spec
.
loader
.
exec_module
(
mod
)
else
:
else
:
mod
=
importlib
.
import_module
(
name_or_path
)
mod
=
importlib
.
import_module
(
name_or_path
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment