Skip to content

Commit 281127c

Browse files
committed
fix import error
1 parent 6717eab commit 281127c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

prelude.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import sys
22
import os
3-
def add_paths():
4-
pythondir = '/usr/share/gcc/python'
5-
print('add to the python sys.path: '+ pythondir)
6-
sys.path.append(pythondir)
7-
scripts_folder = os.path.dirname(__file__)
8-
3+
def add_paths(file_name):
4+
scripts_folder = os.path.dirname(file_name)
95
print('add to the python sys.path: '+ scripts_folder)
106
sys.path.insert(0, scripts_folder)
117

12-
add_paths()
8+
add_paths(__file__)

0 commit comments

Comments
 (0)