Insert src folder at first position of sys.path
This commit is contained in:
parent
36d1522f01
commit
fa564c6029
1 changed files with 1 additions and 1 deletions
2
run
2
run
|
|
@ -16,7 +16,7 @@ I don't know anything about).
|
||||||
"""
|
"""
|
||||||
os.rename(old, os.path.join(basedir, "octoprint.backup"))
|
os.rename(old, os.path.join(basedir, "octoprint.backup"))
|
||||||
|
|
||||||
sys.path.append(os.path.join(basedir, "src"))
|
sys.path.insert(0, os.path.join(basedir, "src"))
|
||||||
|
|
||||||
import octoprint
|
import octoprint
|
||||||
octoprint.main()
|
octoprint.main()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue