Skip to content

Commit 2db8949

Browse files
committed
bug fix in setup.py . undefined reference to "root"
1 parent c2f331b commit 2db8949

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def check_root():
3333

3434
class CustomInstall(install):
3535
def run(self):
36-
if not hasattr(self,"root") or 'debian' not in self.root:
36+
if not hasattr(self,"root"):
37+
install_udev_rules(True)
38+
elif 'debian' not in self.root:
3739
install_udev_rules(True)
3840
install.run(self)
3941

0 commit comments

Comments
 (0)