2013-04-15 11:38:35 +00:00
|
|
|
#!/usr/bin/env python
|
2013-03-11 20:00:43 +00:00
|
|
|
|
2013-09-23 18:38:35 +00:00
|
|
|
import os
|
2013-09-15 19:45:31 +00:00
|
|
|
import sys
|
2013-09-23 18:38:35 +00:00
|
|
|
|
|
|
|
|
basedir = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
|
|
|
|
|
|
old = os.path.join(basedir, "octoprint")
|
|
|
|
|
if os.path.exists(old):
|
|
|
|
|
# rename left-overs from old file structure
|
|
|
|
|
print """
|
|
|
|
|
Found left-overs from old file structure, renaming to
|
|
|
|
|
"octoprint.backup". Please remove this manually (I don't
|
|
|
|
|
dare to do so myself since you might have changes in there
|
|
|
|
|
I don't know anything about).
|
|
|
|
|
"""
|
|
|
|
|
os.rename(old, os.path.join(basedir, "octoprint.backup"))
|
|
|
|
|
|
2014-06-21 18:11:04 +00:00
|
|
|
sys.path.insert(0, os.path.join(basedir, "src"))
|
2013-03-11 20:00:43 +00:00
|
|
|
|
2015-08-12 07:31:50 +00:00
|
|
|
#import sys
|
2015-10-12 13:42:39 +00:00
|
|
|
#sys.path.append('/home/teja/opt/pyvmmonitor/public_api')
|
2015-08-12 07:31:50 +00:00
|
|
|
#import pyvmmonitor
|
|
|
|
|
#pyvmmonitor.connect()
|
|
|
|
|
|
2013-09-15 19:45:31 +00:00
|
|
|
import octoprint
|
|
|
|
|
octoprint.main()
|