Skip to content

Commit

Permalink
fix version pep 440
Browse files Browse the repository at this point in the history
also fix windows peragro-fs
  • Loading branch information
botanicvelious committed Mar 25, 2017
1 parent 3d884ad commit fcd7dd8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def version():
try:
return subprocess.check_output(args).rstrip().lstrip("tags/")
except Exception:
return "0.0.0-development"
return "0.0.0.dev0"


INSTALL_REQUIRES = ['Yapsy', 'Image', 'gitpython', 'filemagic',
Expand All @@ -36,6 +36,7 @@ def version():
version=version(),
packages=find_packages('src'),
package_dir={"": "src"},
include_package_data = True,
url='https://github.com/sueastside/damn-at',
download_url='https://github.com/sueastside/damn-at',
test_suite='nose.collector',
Expand Down
16 changes: 10 additions & 6 deletions src/damn_at/damnfs/damnfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,17 @@ class MyStat(fuse.Stat):
"""
def __init__(self, is_dir, size):
fuse.Stat.__init__(self)
if is_dir:
self.st_mode = stat.S_IFDIR | 0555
self.st_nlink = 2
if os.name == 'nt':
#windows doesnt support this stuff :(
else:
self.st_mode = stat.S_IFREG | 0444
self.st_nlink = 1
self.st_size = size
if is_dir:
print(os.name)
self.st_mode = stat.S_IFDIR | 0555
self.st_nlink = 2
else:
self.st_mode = stat.S_IFREG | 0444
self.st_nlink = 1
self.st_size = size
self.st_atime = _file_timestamp
self.st_mtime = _file_timestamp
self.st_ctime = _file_timestamp
Expand Down

0 comments on commit fcd7dd8

Please sign in to comment.