Skip to content
Snippets Groups Projects
Commit 14611aad authored by jkerdreu's avatar jkerdreu
Browse files

Some cleanup



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2517 b32b6428-25c9-4566-ad07-03861ab6144f
parent de65fac1
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
from xaal.lib import Engine,helpers,tools,cbor
from xaal.monitor import monitor
from xaal.schemas import devices
......@@ -9,7 +8,6 @@ import threading
import logging
import time
import os, stat, errno
# pull in some spaghetti to make this stuff work without fuse-py being installed
try:
......@@ -23,10 +21,12 @@ import json
if not hasattr(fuse, '__version__'):
raise RuntimeError("your fuse-py doesn't know of fuse.__version__, probably it's too old.")
fuse.fuse_python_api = (0, 2)
PACKAGE = 'xaal.fuse'
fuse.fuse_python_api = (0, 2)
logger = logging.getLogger()
helpers.setup_console_logger()
class MyStat(fuse.Stat):
def __init__(self):
self.st_mode = 0
......@@ -40,13 +40,6 @@ class MyStat(fuse.Stat):
self.st_mtime = 0
self.st_ctime = 0
logger = logging.getLogger()
helpers.setup_console_logger()
class XAALFS(Fuse):
def __init__(self, *args, **kw):
......@@ -155,7 +148,6 @@ class XAALFS(Fuse):
return json.dumps(tmp,indent=2).encode('utf-8')
return b''
def main():
usage=""" xAAL Fuse filesystem \n""" + Fuse.fusage
import sys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment